18 #ifndef _JOINTMAKER_HH_
19 #define _JOINTMAKER_HH_
23 #include <boost/unordered/unordered_map.hpp>
83 public:
void CreateJoint(JointType _type);
86 public:
void Update();
90 public:
void RemoveJoint(
const std::string &_jointName);
94 public:
void RemoveJointsByPart(
const std::string &_partName);
97 public:
void GenerateSDF();
100 public: sdf::ElementPtr GetSDF()
const;
140 private:
void CreateHotSpot();
144 private:
void OpenInspector(
const std::string &_name);
147 Q_SIGNALS:
void JointAdded();
150 private slots:
void OnOpenInspector();
168 private: boost::unordered_map<std::string, JointData *> joints;
174 private: std::vector<event::ConnectionPtr> connections;
177 private:
bool newJointCreated;
180 private: boost::unordered_map<JointMaker::JointType, std::string>
184 private: sdf::ElementPtr modelSDF;
187 private:
int jointCounter;
190 private: QAction *inspectAct;
223 public:
double lowerLimit[2];
226 public:
double upperLimit[2];
239 private slots:
void OnApply();
Class for drawing lines that can change.
Definition: DynamicLines.hh:43
math::Vector3 anchor
Joint anchor point.
Definition: JointMaker.hh:229
Generic description of a mouse event.
Definition: MouseEvent.hh:32
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:43
rendering::VisualPtr child
Child visual the joint is connected to.
Definition: JointMaker.hh:211
bool dirty
True if the joint visual needs update.
Definition: JointMaker.hh:232
Fixed joint.
Definition: JointMaker.hh:57
JointMaker::JointType type
Type of joint.
Definition: JointMaker.hh:217
JointInspector * inspector
Inspector for configuring joint properties.
Definition: JointMaker.hh:235
rendering::VisualPtr parent
Parent visual the joint is connected to.
Definition: JointMaker.hh:208
Joint visualization.
Definition: JointMaker.hh:46
JointType
Definition: JointMaker.hh:52
Hinge2 joint.
Definition: JointMaker.hh:63
Screw joint.
Definition: JointMaker.hh:65
A class to inspect and modify joints.
Definition: JointInspector.hh:37
rendering::DynamicLines * line
Visual line used to represent joint connecting parent and child.
Definition: JointMaker.hh:214
Slider joint.
Definition: JointMaker.hh:59
boost::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:100
rendering::VisualPtr visual
Visual of the dynamic line.
Definition: JointMaker.hh:202
Universal joint.
Definition: JointMaker.hh:67
Hinge joint.
Definition: JointMaker.hh:61
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
rendering::VisualPtr hotspot
Visual of the hotspot
Definition: JointMaker.hh:205
Helper class to store joint data.
Definition: JointMaker.hh:197
none
Definition: JointMaker.hh:55