Repository for the winter semester 23/24 robotics course at the TU Freiberg
Minimalist example demonstrating a C++ publisher node, publishing an integer on topic "number" and a Python node subscribing to "number" and publishing the temporal difference between updates to "number" on topic "diff".
In the workspace directory call:
colcon build --packages-select timing_tubaf
In the workspace directory call:
source install/setup.bash
ros2 run timing_tubaf my_publisher
In another terminal, again in the workspace directory, call:
source install/setup.bash
ros2 run timing_tubaf my_subscriber.py
The order in which you execute these should not matter.
C++ node that has the turtlebot drive towards the nearest object.
In the workspace directory call:
colcon build --packages-select follower
In the workspace directory call:
source install/setup.bash
ros2 run follower main
minDistanceminimal distance to an object before the robot stops approachinglinearSpeedlinear movement speedangularSpeedrotational movement speedopeningAngleangle deviation from 0° within which the robot will feel confident to drive forwards
C++ node that has the turtlebot drive along a white line on the ground, using the builtin camera.
In the workspace directory call:
colcon build --packages-select camera_line
In the workspace directory call:
source install/setup.bash
ros2 launch camera_line launch.yaml
linearSpeedlinear movement speedangularSpeedrotational movement speedopeningRatioratio between the coordinate of the line in the cameras image and the image width, when the the robot will feel confident to drive forwards