Goal
Write a Python publisher and subscriber to understand nodes, topics and messages.
Procedure
- Create an
ament_pythonpackage. - Implement a publisher with
rclpy. - Add a subscriber and console entry point.
- Build, source and run both nodes.
Verification
Record the command output, confirm the expected ROS 2 topic or behaviour, and resolve power, TF and device-permission errors before continuing.