- All required packages are already installed
- If not, please first check:
- π§Ύ Update Logs β [branch:
Pedro's Notes] Jan 24 - π§Ύ Update Logs β [branch:
Pedro's Notes] Jan 26
- π§Ύ Update Logs β [branch:
The robot Ethernet port does not provide DHCP.
The host PC must use a static IP.
sudo ip addr flush dev enp7s0
sudo ip addr add 10.21.31.50/24 dev enp7s0
ip a show enp7s0ping -c 2 10.21.31.106
ping -c 2 10.21.31.104Both IPs must be reachable.
If the host is connected to both Wi-Fi and Ethernet, traffic to
10.21.31.0/24 must go through enp7s0.
Check routes:
ip route | grep 10.21.31If the subnet is routed via Wi-Fi (e.g. wlp8s0), remove it:
sudo ip route del 10.21.31.0/24 via <WIFI_GW> dev wlp8s0(Replace <WIFI_GW> with the actual Wi-Fi gateway.)
This step is executed on the robot
ssh user@10.21.31.106Enable and start the multicast relay service:
sudo systemctl enable multicast-relay.service
sudo systemctl start multicast-relay.service
sudo systemctl status multicast-relay.service --no-pagerExpected output:
Active: active (running)
β οΈ If this step fails, do NOT debug ROS yet
On the host PC, run:
sudo tcpdump -ni enp7s0 -nn 'udp and (port 6691 or port 6692)' -c 20Expected packets:
10.21.31.106.xxxx > 224.10.10.201.6691: UDP, length 1248
10.21.31.106.xxxx > 224.10.10.202.6692: UDP, length 1248
If no packets appear:
- Network configuration is incorrect
- Multicast relay is not working
- Routing is wrong
Fix networking first. Do not proceed to ROS debugging.
cd ~/.../ws_rslidarsource /opt/ros/jazzy/setup.bash
source install/setup.bashros2 pkg prefix rslidar_sdkIt should point to:
.../ws_rslidar/install/rslidar_sdk
Not:
/opt/ros/...
ros2 run rslidar_sdk rslidar_sdk_node \
--ros-args \
--params-file /home/robotum/Documents/RoboTUM_ws/puma/robot_dds/rslidar_rosparams.yaml/rslidar_points_6691
/rslidar_points_6692
ros2 topic hz /rslidar_points_6691
ros2 topic hz /rslidar_points_6692In our setup, the frequency is approximately ~9 Hz.
source /opt/ros/jazzy/setup.bash
source ~/Documents/RoboTUM_ws/puma/puma_ros2_ws/install/setup.bash
ros2 launch puma_nodes puma_bringup.launch.pysource /opt/ros/jazzy/setup.bash
source ~/Documents/RoboTUM_ws/puma/puma_ros2_ws/install/setup.bash
ros2 run puma_nodes teleop_keyboardsource /opt/ros/jazzy/setup.bash
source ~/Documents/RoboTUM_ws/puma/puma_ros2_ws/install/setup.bash
rviz2- Fixed Frame:
maporpuma_base_link
- In the left panel, click Add
- Select PointCloud2
- Click OK
- PointCloud2 β Topic
Select:
rslidar_points_6691_front- PointCloud2 β Topic
rslidar_points_6692_rear- In the left panel, click Add
- Select Image
- Click OK
Configure the Image Display:
- Image β Topic
Select:
/camera/front/image_rawError subscribing: Empty topic name
- Image β Reliability Policy
Best Effort
If RViz is set to Reliable, it may fail to receive images.