SMORES Robot Platform Simulation
Modlab at Penn, ASL at Cornell
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
SmoresEdge.hh
1 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 // Author: Edward Yunkai Cui
3 // Description: This class is built for configuration representation.
4 // And edge connects two nodes in different modules, and also
5 // it will store a pointer to the dynamically generated
6 // joint.
7 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8 #ifndef _GAZEBO_SMORES_EDGE_HH_
9 #define _GAZEBO_SMORES_EDGE_HH_
10 #include <boost/shared_ptr.hpp>
12 
13 #include <gazebo/gazebo.hh>
14 #include <gazebo/physics/physics.hh>
15 // #include "SmoresNode.hh"
16 
17 namespace gazebo{
18 // Forward declaration
19 class SmoresNode;
21 typedef boost::shared_ptr<SmoresNode> SmoresNodePtr;
23 
28 {
29  public:
31 
41  SmoresEdge(SmoresNodePtr model_first, SmoresNodePtr model_second,
42  double length, double angle,int axis1, int axis2);
44  ~SmoresEdge();
46 
51  SmoresNodePtr FindMatchingNode(SmoresNodePtr node);
53  double Distance;
55  double Angle;
57  int Axis_1;
59  int Axis_2;
60 
62  SmoresNodePtr model_1;
64  SmoresNodePtr model_2;
66  physics::JointPtr DynamicJointPtr;
67 }; // class SmoresEdge
68 }
69 #endif
~SmoresEdge()
Destructor.
Definition: SmoresEdge.cc:14
int Axis_1
Axis of the model_1, 0 for x, 1 for y, 2 for z.
Definition: SmoresEdge.hh:57
SmoresEdge(SmoresNodePtr model_first, SmoresNodePtr model_second, double length, double angle, int axis1, int axis2)
Constructor.
Definition: SmoresEdge.cc:4
gazebo name space
Definition: system_gui.cc:41
double Distance
Distance offset along the aligned axis.
Definition: SmoresEdge.hh:53
SmoresNodePtr FindMatchingNode(SmoresNodePtr node)
Find the connected node given one node.
Definition: SmoresEdge.cc:20
SmoresNodePtr model_2
A pointer to the connected node on the second module.
Definition: SmoresEdge.hh:64
A class used to manage each node, in this case is the part has connectable face.
Definition: SmoresNode.hh:17
SmoresNodePtr model_1
A pointer to the connected node on the first module.
Definition: SmoresEdge.hh:62
int Axis_2
Axis of the model_2, 0 for x, 1 for y, 2 for z.
Definition: SmoresEdge.hh:59
A class used to represent connectivities in simulation.
Definition: SmoresEdge.hh:27
physics::JointPtr DynamicJointPtr
A pointer to the dynamically generated joint.
Definition: SmoresEdge.hh:66
boost::shared_ptr< SmoresNode > SmoresNodePtr
Smart pointer of SmoresNode object.
Definition: SmoresEdge.hh:19
double Angle
Angle offset in radian around the aligned axis.
Definition: SmoresEdge.hh:55