43 actuator->state_.is_enabled_ =
true;
44 hw->addActuator(actuator.get());
51 std::string urdf_param_name;
52 std::string urdf_string;
54 while (urdf_string.empty())
56 ROS_DEBUG(
"Waiting for urdf: %s on the param server.",
"sh_description");
57 if (rosnode.searchParam(
"sh_description", urdf_param_name))
59 rosnode.getParam(urdf_param_name, urdf_string);
60 ROS_DEBUG(
"found upstream\n%s\n------\n%s\n------\n%s",
"sh_description", urdf_param_name.c_str(),
65 rosnode.getParam(
"sh_description", urdf_string);
66 ROS_DEBUG(
"found in node namespace\n%s\n------\n%s\n------\n%s",
"sh_description", urdf_param_name.c_str(),
74 if (!
model->Parse(urdf_string.c_str()) &&
model->Error())
boost::shared_ptr< TiXmlDocument > model
pr2_mechanism_model::JointState * joint_state
boost::shared_ptr< pr2_mechanism_model::Robot > robot
boost::shared_ptr< pr2_mechanism_model::RobotState > robot_state
virtual ~TestControllers()
virtual void init_controller()=0
boost::shared_ptr< sr_actuator::SrMotorActuator > actuator
boost::shared_ptr< pr2_hardware_interface::HardwareInterface > hw