11 #include <ros/service.h>
12 #include <config_server/parameter.h>
13 #include <robotcontrol/motionmodule.h>
14 #include <robotcontrol/model/robotmodel.h>
15 #include <limb_control/PlayCommandsSrv.h>
18 namespace limb_control
24 robotcontrol::Joint::Ptr joint;
30 class LimbControl :
public robotcontrol::MotionModule
37 virtual bool init(robotcontrol::RobotModel* model);
39 virtual bool isTriggered();
43 const std::string CONFIG_PARAM_PATH;
46 robotcontrol::RobotModel* m_model;
49 config_server::Parameter<bool> m_limbControlEnabled;
50 bool m_lastEnabledState;
53 ros::ServiceServer m_srv_playCommands;
54 bool handlePlayCommands(limb_control::PlayCommands::Request& req, limb_control::PlayCommands::Response& res);
57 void removeDuplicateJoints();
58 double getRemainingTime();
59 double getCurrentMotionTime()
const;
62 std::list<LimbCmd> m_LCA;
65 ros::Time m_motionStartTime;