top of page

Clinic

Public·127 members

ros melodic raspberry Pi 02W bittle robot, serial communication.

Hello, I am stuck with a problem with ros serial communication from a raspberry Pi zero running Raspbian Buster server image and ROS Melodic following instructions from  https://www.hackster.io/dmitrywat/bittle-teleoperation-with-ros-and-raspberry-pi-22c454 By Dmitry Maslov

 

As far as I can tell the master Ubuntu 20.04 and slave on the raspberry Pi zero are working correctly,  I have used the appropriate permissions

sudo usermod -a -G dialout,tty pi

sudo usermod -aG tty pi, and enabled serial trough raspi-config.running master and slave gives me velocity messages in terminal when I steer using rqt_robot_steering and I get a video feed from the USB cam. When a command is sent from the rqt_robot_steering GUI, I get a beep but the robot doesn’t move.

This is not a hardware problem. I used the steps from the Petoi ros page  https://docs.petoi.com/apis/rosboth nodes ran perfectlyrosrun opencat_server opencat_service_nodesending command below was executed perfectly.rosrun opencat_examples opencat_examples_client_cpp

Can anyone help with the issue?Thanks!



275 Views
Reid Graves
Reid Graves
Mar 04, 2024

I've had quite the battle with frame rate. Playing with compression and image size, I've been able to get mid 20 frames per second on the Pi zero, and low 30s with the Pi 4. I do about 50-60% compression with the 4, with 640x480, and 75% compression with 320x240 on the Pi zero. Typically it will start off with low latency, but increase and the average frame rate won't change drastically, but the maximum time for image transmission increases substantially, sometimes up to 30s. For the Pi zero the latency increases within a minute or so, while the pi 4 will stream well for about 5 minutes straight.

bottom of page