30 #ifndef RVIZ_ROBOT_JOINT_H 31 #define RVIZ_ROBOT_JOINT_H 39 #include <OgreVector3.h> 40 #include <OgreQuaternion.h> 42 #include <OgreMaterial.h> 46 #include <urdf_model/pose.h> 72 class QuaternionProperty;
74 class RobotLinkSelectionHandler;
92 void setTransforms(
const Ogre::Vector3& parent_link_position,
93 const Ogre::Quaternion& parent_link_orientation);
101 return parent_link_name_;
105 return child_link_name_;
109 return joint_property_;
113 return joint_property_;
116 void hideSubProperties(
bool hide);
120 void setParentProperty(
Property* new_parent);
122 Ogre::Vector3 getPosition();
123 Ogre::Quaternion getOrientation();
131 return has_decendent_links_with_geometry_;
135 void useDetailProperty(
bool use_detail);
138 void expandDetails(
bool expand);
144 void setJointPropertyDescription();
148 void calculateJointCheckboxesRecursive(
149 int& links_with_geom,
150 int& links_with_geom_checked,
151 int& links_with_geom_unchecked);
157 void updateChildVisibility();
160 bool getEnabled()
const;
163 bool styleIsTree()
const;
167 getChildLinkState(
int& links_with_geom,
168 int& links_with_geom_checked,
169 int& links_with_geom_unchecked,
170 bool recursive)
const;
173 void setJointCheckbox(QVariant val);
208 #endif // RVIZ_ROBOT_LINK_H VectorProperty * axis_property_
const Property * getJointProperty() const
StringProperty * type_property_
Ogre::Quaternion joint_origin_rot_
void setRobotAlpha(float)
const std::string & getParentLinkName() const
QuaternionProperty * orientation_property_
std::string parent_link_name_
A single element of a property tree, with a name, value, description, and possibly children...
bool hasDescendentLinksWithGeometry() const
Property * joint_property_
Ogre::Vector3 joint_origin_pos_
Property specialized to enforce floating point max/min.
VectorProperty * position_property_
Property * show_axis_property_
Property * axes_property_
const std::string & getName() const
const std::string & getChildLinkName() const
FloatProperty * upper_limit_property_
std::string name_
Name of this joint.
Contains any data we need from a joint in the robot.
An object that displays a set of X/Y/Z axes, with X=Red, Y=Green, Z=Blue.
FloatProperty * lower_limit_property_
Property specialized for string values.
std::string child_link_name_
An arrow consisting of a cylinder and a cone.
Property * getJointProperty()
bool has_decendent_links_with_geometry_