SMORES Robot Platform Simulation
Modlab at Penn, ASL at Cornell
|
A class used to represent connectivities in simulation. More...
#include <SmoresEdge.hh>
Public Member Functions | |
SmoresEdge (SmoresNodePtr model_first, SmoresNodePtr model_second, double length, double angle, int axis1, int axis2) | |
Constructor. More... | |
~SmoresEdge () | |
Destructor. | |
SmoresNodePtr | FindMatchingNode (SmoresNodePtr node) |
Find the connected node given one node. More... | |
Public Attributes | |
double | Distance |
Distance offset along the aligned axis. | |
double | Angle |
Angle offset in radian around the aligned axis. | |
int | Axis_1 |
Axis of the model_1, 0 for x, 1 for y, 2 for z. | |
int | Axis_2 |
Axis of the model_2, 0 for x, 1 for y, 2 for z. | |
SmoresNodePtr | model_1 |
A pointer to the connected node on the first module. | |
SmoresNodePtr | model_2 |
A pointer to the connected node on the second module. | |
physics::JointPtr | DynamicJointPtr |
A pointer to the dynamically generated joint. | |
A class used to represent connectivities in simulation.
This is part of the graph representation of configuration that used in multiple research in modlab.
gazebo::SmoresEdge::SmoresEdge | ( | SmoresNodePtr | model_first, |
SmoresNodePtr | model_second, | ||
double | length, | ||
double | angle, | ||
int | axis1, | ||
int | axis2 | ||
) |
Constructor.
model_first | Pointer to one of the connected modules |
model_second | Pointer to the other connected modules |
length | The offset distance of the two nodes |
angle | The offset angle of the two nodes along the connected axis |
axis1 | Axis id of the connected axis in the node local frame, 0 for x, 1 for y, 2 for z |
axis2 | Axis id of the connected axis in the node local frame, 0 for x, 1 for y, 2 for z |
SmoresNodePtr gazebo::SmoresEdge::FindMatchingNode | ( | SmoresNodePtr | node | ) |
Find the connected node given one node.
node | The given node |