Some examples for ROS lessons. The project contains several examples and 3 packages.
- example1: this example contains a single node called publisher which publish String messages @ 10Hz.
- example2: this example contains two nodes (talker and listener). The talker node publishes messages @ 10Hz and the listener node subscribes to the talkTopic and spin over a callback to write on console the received messages.
- example3: this example contains two nodes (sensor and robot). The node called sensor publishes messages @ 40Hz with the data of the laser readings:
angle_min
,angle_max
andangle_increment
are the start and end angle of the scan and the angular distance between measurements in radians,range_min
andrange_max
represents the minimum and maximum range values in meters whileranges[]
is an array containing the ranges data for all the scanned area in meters.