45 CartesianWrenchController::CartesianWrenchController()
47 jnt_to_jac_solver_(NULL)
67 std::string root_name, tip_name;
69 ROS_ERROR(
"CartesianWrenchController: No root name found on parameter server (namespace: %s)",
74 ROS_ERROR(
"CartesianWrenchController: No tip name found on parameter server (namespace: %s)",
81 ROS_ERROR(
"Initializing chain from %s to %s failed", root_name.c_str(), tip_name.c_str());
129 for (
unsigned int j=0; j<6; j++)
PLUGINLIB_EXPORT_CLASS(my_controller_ns::MyControllerClass, pr2_controller_interface::Controller)
boost::scoped_ptr< KDL::ChainJntToJacSolver > jnt_to_jac_solver_
void resize(unsigned int newNrOfColumns)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
void getPositions(std::vector< double > &)
void setEfforts(KDL::JntArray &)
bool init(pr2_mechanism_model::RobotState *robot, ros::NodeHandle &n)
ros::Subscriber sub_command_
void command(const geometry_msgs::WrenchConstPtr &wrench_msg)
const std::string & getNamespace() const
unsigned int getNrOfJoints() const
~CartesianWrenchController()
void resize(unsigned int newSize)
pr2_mechanism_model::Chain chain_
bool getParam(const std::string &key, std::string &s) const
pr2_mechanism_model::RobotState * robot_state_
bool init(RobotState *robot_state, const std::string &root, const std::string &tip)
void toKDL(KDL::Chain &chain)