-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeout #2
Comments
ros2 run serial_motor_demo driver --ros-args -p encoder_cpr:=1796 -p loop_rate:=30 -p serial_port:=/dev/ttyUSB0 -p baud_rate:=57600 |
As I was testing this today for the humble upgrade, I realised that I had always sort of had problems like this, except usually just on the first connection and after that it was fine. I.e. it would print only once. I wonder if this is related or not... |
@neochaos42 same issue |
Same issue. Mine prints 3 times. The gui reads: "Encoders: XXX XXX Speed rev/s: XXX XXX" and the motors do not spin. However I can listen to the topic from my dev machine and see that the messages are being successfully published. The rpi is just not listening to it. On the raspberry pi: rpi@rpi:~/robot_ws$ ros2 run serial_motor_demo driver --ros-args -p serial_port:=/dev/ttyUSB0 -p baud_rate:=57600 -p loop_rate:=30 -p encoder_cpr:=2500 On the development machine after running, "ros2 run serial_motor_demo gui" and "ros2 topic echo /motor_command" in a separate terminal after 3 different publishes:
|
Update: The XXX XXX clued me in that ROS2 communication was not working so I used the talker/listener program to test this. Sure enough, ROS was not communicating over my network. This ended up being firewall issues which were overcome by
So now it is working! |
Same issue. The ROS2 communication works fine but still get serial timeouts:
If I open a python3 terminal and past the following code snipit from driver.py, I get a valid response:
Anyone has an idea how to debug this further? |
Solved it! Add a 2 second sleep after creating the Serial object:
Issue (and solution) that's causing it is described here |
Hello I am running both nodes on a single machine and serial_motor_demo keeps timing out. Error: Serial Timeout on command: e
This keeps printing.
The system works using miniterm but not using these nodes.
The text was updated successfully, but these errors were encountered: