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

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.
 

Detailed Description

A class used to represent connectivities in simulation.

This is part of the graph representation of configuration that used in multiple research in modlab.

Constructor & Destructor Documentation

gazebo::SmoresEdge::SmoresEdge ( SmoresNodePtr  model_first,
SmoresNodePtr  model_second,
double  length,
double  angle,
int  axis1,
int  axis2 
)

Constructor.

Parameters
model_firstPointer to one of the connected modules
model_secondPointer to the other connected modules
lengthThe offset distance of the two nodes
angleThe offset angle of the two nodes along the connected axis
axis1Axis id of the connected axis in the node local frame, 0 for x, 1 for y, 2 for z
axis2Axis id of the connected axis in the node local frame, 0 for x, 1 for y, 2 for z

Member Function Documentation

SmoresNodePtr gazebo::SmoresEdge::FindMatchingNode ( SmoresNodePtr  node)

Find the connected node given one node.

Parameters
nodeThe given node
Returns
If there is a node connected to given node, then return that node otherwise return an empty pointer

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