ROS2: Difference between revisions

From GCtronic wiki
Jump to navigation Jump to search
(Created page with "=ROS2= ROS2 is released in a docker container named <code>ros_docker_epuck</code>.<br/> The ROS2 node can be found here [https://github.com/gctronic/epuck_ros2 https://github....")
 
No edit summary
Line 1: Line 1:
=ROS2=
ROS2 is released in a docker container named <code>ros_docker_epuck</code>.<br/>
ROS2 is released in a docker container named <code>ros_docker_epuck</code>.<br/>
The ROS2 node can be found here [https://github.com/gctronic/epuck_ros2 https://github.com/gctronic/epuck_ros2].<br/>
The ROS2 node can be found here [https://github.com/gctronic/epuck_ros2 https://github.com/gctronic/epuck_ros2].<br/>

Revision as of 08:18, 13 October 2023

ROS2 is released in a docker container named ros_docker_epuck.
The ROS2 node can be found here https://github.com/gctronic/epuck_ros2.
In order to start the node follow these steps:

  1. docker run -it --privileged --network="host" ros_docker_epuck
  2. source /opt/ros/humble/install/local_setup.bash
  3. ros2 launch epuck_ros2 robot_launch.py

From your computer (pi-puck and computer must be connected to the same network) you can then list the topics with the command ros2 topic list. For example you can read the time of flight sensor values with the command ros2 topic echo /tof