Class providing a ControllerInterface publishing JointStates. More...
#include <controller_interface.h>
Public Member Functions | |
ControllerInterfaceJointStates () | |
virtual void | initialize (ros::NodeHandle &nh, const TwistControllerParams ¶ms) |
virtual void | processResult (const KDL::JntArray &q_dot_ik, const KDL::JntArray ¤t_q) |
~ControllerInterfaceJointStates () | |
Private Member Functions | |
void | publishJointState (const ros::TimerEvent &event) |
Private Attributes | |
sensor_msgs::JointState | js_msg_ |
ros::Timer | js_timer_ |
boost::mutex | mutex_ |
Class providing a ControllerInterface publishing JointStates.
Definition at line 85 of file controller_interface.h.
Definition at line 88 of file controller_interface.h.
Definition at line 89 of file controller_interface.h.
void cob_twist_controller::ControllerInterfaceJointStates::initialize | ( | ros::NodeHandle & | nh, |
const TwistControllerParams & | params | ||
) | [virtual] |
Implements cob_twist_controller::ControllerInterfaceBase.
Definition at line 116 of file controller_interface.cpp.
void cob_twist_controller::ControllerInterfaceJointStates::processResult | ( | const KDL::JntArray & | q_dot_ik, |
const KDL::JntArray & | current_q | ||
) | [inline, virtual] |
Method processing the result using integration method (Simpson) updating the internal JointState.
update JointState
publishing takes place in separate thread
Implements cob_twist_controller::ControllerInterfaceBase.
Definition at line 159 of file controller_interface.cpp.
void cob_twist_controller::ControllerInterfaceJointStates::publishJointState | ( | const ros::TimerEvent & | event | ) | [private] |
Timer callback publishing the internal JointState to the 'joint_state' topic.
Definition at line 176 of file controller_interface.cpp.
sensor_msgs::JointState cob_twist_controller::ControllerInterfaceJointStates::js_msg_ [private] |
Definition at line 98 of file controller_interface.h.
Definition at line 100 of file controller_interface.h.
boost::mutex cob_twist_controller::ControllerInterfaceJointStates::mutex_ [private] |
Definition at line 97 of file controller_interface.h.