******************* Navigation ******************* Hokuyo laser scanner ====================== We will add a laser scanner to the mobile robot. The sensor behavior is already defined in gazebo as a plugin. The plugin that we will use is called ``libgazebo_ros_laser.so``. We will create a new xacro file called ``hokuyo_laser.xacro``, we define a link, a joint and add the gazebo plugin: .. code:: xml Gazebo/Blue false ${length/2} 0 0 0 0 0 false 40 720 1 -1.570796 1.570796 0.10 10.0 0.001 /scan hokuyo_link Create a new xacro file called ``mobile_robot_with_laser.xacro``, where we include the mobile robot definition and the laser macro: .. code:: xml Open the robot in gazebo: :: roslaunch mobile_car_gazebo mobile_car_gazebo.launch model:='$(find mobile_car_description)/urdf/mobile_robot_with_laser.xacro' Using ``rostopic list`` we can see the topic called ``/scan`` is being published. ``rostopic echo /scan`` to see the laser scanner value. Add camera ============ .. code:: xml 30.0 1.3962634 800 800 R8G8B8 0.02 300 gaussian 0.0 0.007 true 0.0 robot/camera1 image_raw camera_info camera_link 0.07 0.0 0.0 0.0 0.0 0.0 Show image: :: rosrun image_view image_view image:=/robot/camera1/image_raw Loading maps in gazebo ========================= Teleoperate the robot =======================