Exercise Session 2
Exercise Session 2
Exercise Session 2
Exercise Session 2
Theory
Exercise
In this exercise, you will create your first ROS package. The package should be able to
subscribe to a laser scan message from the SMB robot and process the incoming data. This
node will be the basis for the next exercises. Use Eclipse to edit your package (Lecture 2
Slides 9-13).
2. OR (easy): Download the Zip archive containing prepared files of the package
smb_highlevel_controller from the course website.
1 Exercise 2
ROS Course 2021
points. You can save your current RViz configuration as the default configuration by
pressing ctrl+s. (Lecture 2 Slides 24-26)
10. [OPTIONAL] Check the pointcloud_to_laserscan node, find out what it is doing.
Which topic is it publishing on and which is it subscribing on? Visualize the 3D point
cloud and the laser scan in Rviz.
11. [OPTIONAL] Create an additional subscriber to the 3D point cloud and print how
many points it has.
RViz visualization of a single laser scan. Multiple obstacles are placed around the robot. Note the
changed “Fixed Frame” as well as “Size (m)”.
Evaluation
❏ Start the launch file and drive around with SMB. There should be changing output
from the laser scanner in the terminal. [40%]
❏ Check if the node is implemented as the template suggests. [30%]
❏ Is a parameter file used? [15%]
❏ Is the laser scan visualized in RViz as shown in the image? [15%]
OPTIONAL
❏ Correctly explain what pointcloud_to_laserscan node is doing. Is the 3D point cloud
changing as the robot moves? [10% bonus]
❏ Is the number of points inside the cloud shown in the terminal? Is it the callback
implemented correctly? [10% bonus]
2 Exercise 2