ROS 2 Labs · exercise 03
First node class
Write the node constructor that announces itself the way rclcpp does.
Lab 03 · Build an ament C++ packageGuided steps
- 1.Store the node name and log 'robot basics ready' from the constructor.
- 2.Expose the name through a const accessor.
- 3.In a real package this is exactly the body of your StatusNode constructor.
Your code
Your code is saved in this browser after every run and restored next time.