SMORES Robot Platform Simulation
Modlab at Penn, ASL at Cornell
|
A class used to store collision information for two models. More...
#include <CollisionInformation.hh>
Public Member Functions | |
CollisionInformation (string collision1, string collision2, string link_collision1, string link_collision2) | |
Constructor. More... | |
~CollisionInformation () | |
Destructor. | |
bool | SameCollision (string collision1, string collision2, string link_collision1, string link_collision2) |
Check whether the collision stored in two objects are the same. More... | |
Public Attributes | |
string | Model1 |
Name of the first model. | |
string | Model2 |
Name of the second model. | |
string | LinkOfModel1 |
Name of the collided link of the first model. | |
string | LinkofModel2 |
Name of the collided link of the second model. | |
A class used to store collision information for two models.
This class is mainly used in magnetic connection of two contact faces
gazebo::CollisionInformation::CollisionInformation | ( | string | collision1, |
string | collision2, | ||
string | link_collision1, | ||
string | link_collision2 | ||
) |
Constructor.
collision1 | Name of one of the collided models |
collision2 | Name of the other collided models |
link_collision1 | Name of the link of the first model |
link_collision2 | Name of the link of the second model |
bool gazebo::CollisionInformation::SameCollision | ( | string | collision1, |
string | collision2, | ||
string | link_collision1, | ||
string | link_collision2 | ||
) |
Check whether the collision stored in two objects are the same.
Because the model name stored in the object have no order, so this function is useful to check whether two objects are the same
collision1 | Name of one of the collided models |
collision2 | Name of the other collided models |
link_collision1 | Name of the link of the first model |
link_collision2 | Name of the link of the second model |