Skip to content

Commit

Permalink
Issue #3: publish odom and joint_states with absolute paths so they
Browse files Browse the repository at this point in the history
don't go under /turtlebot_node/ namespace.
  • Loading branch information
corot committed Aug 30, 2013
1 parent 44ca1e2 commit a09e727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions create_gazebo_plugins/src/gazebo_ros_create.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ void GazeboRosCreate::Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf )
cmd_vel_sub_ = rosnode_->subscribe("cmd_vel", 1, &GazeboRosCreate::OnCmdVel, this );

sensor_state_pub_ = rosnode_->advertise<create_node::TurtlebotSensorState>("sensor_state", 1);
odom_pub_ = rosnode_->advertise<nav_msgs::Odometry>("odom", 1);
odom_pub_ = rosnode_->advertise<nav_msgs::Odometry>("/odom", 1);

joint_state_pub_ = rosnode_->advertise<sensor_msgs::JointState>("joint_states", 1);
joint_state_pub_ = rosnode_->advertise<sensor_msgs::JointState>("/joint_states", 1);

js_.name.push_back( left_wheel_joint_name_ );
js_.position.push_back(0);
Expand Down

0 comments on commit a09e727

Please sign in to comment.