ROS
ROS Examples
Basic Pub/Sub
C++ Example Node
From https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/Writing-A-Simple-Cpp-Publisher-And-Subscriber.html
For a very long time, I’ve been developing nodes from Python. It’s important to understand what’s happening on the C++.
Pay attention to the following:
rclcpp::spin(std::make_shared<MinimalPublisher>());
, why make_shared
?
- Because everything in ROS using shared_ptr, I have a note on this in ROS Node
Python Example Node
From https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/Writing-A-Simple-Py-Publisher-And-Subscriber.html
Intra-Process Comms
Taken from https://docs.ros.org/en/humble/Tutorials/Demos/Intra-Process-Communication.html