37 #include <sensor_msgs/JointState.h> 41 int main(
int argc,
char** argv)
50 sensor_msgs::JointState joint_state;
55 joint_state.name.resize(5);
56 joint_state.position.resize(5);
58 joint_state.name[0] =
"p3dx_back_right_wheel_joint";
59 joint_state.position[0] = 0;
61 joint_state.name[1] =
"p3dx_back_left_wheel_joint";
62 joint_state.position[1] = 0;
64 joint_state.name[2] =
"p3dx_front_left_wheel_joint";
65 joint_state.position[2] = 0;
67 joint_state.name[3] =
"p3dx_front_right_wheel_joint";
68 joint_state.position[3] = 0;
70 joint_state.name[4] =
"p3dx_base_swivel_joint";
71 joint_state.position[4] = 0;
73 joint_state_publisher.
publish(joint_state);
void publish(const boost::shared_ptr< M > &message) const
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
int main(int argc, char **argv)