Starting from:

$25

ROS - Laboratory exercise 4 - Solved

Task 1: Mouse Tracker
a)    Clone the prepared ROS package, mouse tracker, in your catkin workspace, start roscore and run mouse position publisher.py node from the cloned package. Which command did you use to run the node?

b)    Once you started the node, go ahead and check which topics does it publish. Which command are you using for listing ROS topics?

c)     As you could have noticed, mouse position publisher.py node publishes only one topic, called /mouse position, on which it publishes the current position of your mouse. In the first text box, write the command which enables you to check the type of the message published on the /mouse position topic and in the second text box write the obtained message type.

d)    To verify that the mouse position publisher.py node runs as it should, print the published messages directly from the terminal. Write the command you have used for printing the messages.

e)    Inspect the coordinates of the upper left and bottom right corner of your screen. What is your screen resolution?

f)      Inside the mouse tracker package create a new folder called launch. Write a launch file, track mouse.launch which will run mouse position publisher.py node and turtlesim node from the turtlesim package

More products