Open imad-ali opened 7 years ago
As advised, I changed the node type on line 26 of diff_wheeled_gazebo_full.launch from "state_publisher" to "robot_state_publisher", and the first warning
[ WARN] [1502832331.629880560]: The 'state_publisher' executable is deprecated. Please use 'robot_state_publisher' instead
has disappeared but the others still remain. Correct me if I am wrong, but I feel gmapping might be acting up because the robot is coming up in an empty world in Gazebo. Shouldn't this part in diff_wheeled_gazebo_full.launch refer to willowgarage_world.launch instead of empty_world.launch?
<!-- We resume the logic in empty_world.launch -->
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="debug" value="$(arg debug)" />
<arg name="gui" value="$(arg gui)" />
<arg name="paused" value="$(arg paused)"/>
<arg name="use_sim_time" value="$(arg use_sim_time)"/>
<arg name="headless" value="$(arg headless)"/>
</include>
Hoping someone can help me nail this. Thanks :)
Hi @imad-ali
You can start Gazebo first and make sure the following topics are getting
1) /odom 2) /tf
Also, SLAM will not work properly in an empty world, maybe you can add some obstacle around the robot to map the world.
Hi everyone,
I am new to ROS and have been learning from Mastering ROS for Robotics Programming. I have run into an issue in Chapter 4 where gmapping and AMCL are used to build a map of Willow Garage world and navigate autonomously. I am using a dual boot machine running Windows 10 and Ubuntu 14.04 on separate HDDs.
When I run:
roslaunch diff_wheeled_robot_gazebo diff_wheeled_gazebo_full.launch
The robot launches in Gazebo in an empty world instead of Willow Garage and the terminal displays the following warnings:
[ WARN] [1502832331.629880560]: The 'state_publisher' executable is deprecated. Please use 'robot_state_publisher' instead [ WARN] [1502832331.632663525]: The root link base_footprint has an inertia specified in the URDF, but KDL does not support a root link with an inertia. As a workaround, you can add an extra dummy link to your URDF.
Next, when I run:
roslaunch diff_wheeled_robot_gazebo gmapping.launch
The terminal displays the following output including an error.
I have double and triple checked all the packages built so far to ensure they are the same as what's in the code for the chapters. However, something seems to be amiss. I also updated the navigation package to make sure nothing is missing from it. Has anybody had a similar issue? How do I fix this?