SMORES Robot Platform Simulation
Modlab at Penn, ASL at Cornell
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
gazebo::CollisionInformation Class Reference

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.
 

Detailed Description

A class used to store collision information for two models.

This class is mainly used in magnetic connection of two contact faces

Constructor & Destructor Documentation

gazebo::CollisionInformation::CollisionInformation ( string  collision1,
string  collision2,
string  link_collision1,
string  link_collision2 
)

Constructor.

Parameters
collision1Name of one of the collided models
collision2Name of the other collided models
link_collision1Name of the link of the first model
link_collision2Name of the link of the second model

Member Function Documentation

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

Parameters
collision1Name of one of the collided models
collision2Name of the other collided models
link_collision1Name of the link of the first model
link_collision2Name of the link of the second model
Returns
If they are the same, return true, else return false

The documentation for this class was generated from the following files: