Go to the documentation of this file.
24 const std::string & b2,
28 const std::optional<std::vector<std::string>> & r1Joints = {},
29 const std::optional<std::vector<std::string>> & r2Joints = {},
30 bool r1JointsInactive =
false,
31 bool r2JointsInactive =
false)
32 : body1(b1), body2(b2), iDist(i), sDist(s), damping(d), r1Joints(r1Joints), r2Joints(r2Joints),
33 r1JointsInactive(r1JointsInactive), r2JointsInactive(r2JointsInactive)
48 std::optional<std::vector<std::string>>
r1Joints;
49 std::optional<std::vector<std::string>>
51 bool r1JointsInactive =
false;
52 bool r2JointsInactive =
false;
53 inline bool isNone() {
return body1 ==
"NONE" && body2 ==
"NONE"; }
56 bool operator!=(
const Collision & rhs)
const;
double iDist
Definition: Collision.h:38
std::string body1
Definition: Collision.h:36
Collision()
Definition: Collision.h:22
Used to define a collision constraint between two bodies.
std::optional< std::vector< std::string > > r1Joints
Definition: Collision.h:48
std::optional< std::vector< std::string > > r2Joints
Definition: Collision.h:50
#define MC_RBDYN_DLLAPI
Definition: api.h:50
bool operator==(const mc_rbdyn::BodySensor &lhs, const mc_rbdyn::BodySensor &rhs)
Definition: BodySensor.h:147
Definition: generic_gripper.h:14
double damping
Definition: Collision.h:40
Definition: Collision.h:20
bool isNone()
Definition: Collision.h:53
Collision(const std::string &b1, const std::string &b2, double i, double s, double d, const std::optional< std::vector< std::string >> &r1Joints={}, const std::optional< std::vector< std::string >> &r2Joints={}, bool r1JointsInactive=false, bool r2JointsInactive=false)
Definition: Collision.h:23
double sDist
Definition: Collision.h:39
MC_RBDYN_DLLAPI std::ostream & operator<<(std::ostream &os, const Collision &c)
std::string body2
Definition: Collision.h:37