diff --git a/robot_state_publisher/include/robot_state_publisher/joint_state_listener.h b/robot_state_publisher/include/robot_state_publisher/joint_state_listener.h index ef2f4fe..d07d1ac 100644 --- a/robot_state_publisher/include/robot_state_publisher/joint_state_listener.h +++ b/robot_state_publisher/include/robot_state_publisher/joint_state_listener.h @@ -52,7 +52,12 @@ namespace robot_state_publisher{ class JointStateListener{ public: + /** Constructor + * \param tree The kinematic model of a robot, represented by a KDL Tree + */ JointStateListener(const KDL::Tree& tree); + + /// Destructor ~JointStateListener(); private: diff --git a/robot_state_publisher/include/robot_state_publisher/robot_state_publisher.h b/robot_state_publisher/include/robot_state_publisher/robot_state_publisher.h index 781082c..755c288 100644 --- a/robot_state_publisher/include/robot_state_publisher/robot_state_publisher.h +++ b/robot_state_publisher/include/robot_state_publisher/robot_state_publisher.h @@ -48,9 +48,18 @@ namespace robot_state_publisher{ class RobotStatePublisher { public: + /** Constructor + * \param tree The kinematic model of a robot, represented by a KDL Tree + */ RobotStatePublisher(const KDL::Tree& tree); + + /// Destructor ~RobotStatePublisher(){}; + /** Publish transforms to tf + * \param joint_positions A map of joint names and joint positions. + * \param time The time at which the joint positions were recorded + */ bool publishTransforms(const std::map& joint_positions, const ros::Time& time); private: