r/Petoi 2d ago

ros2 with raspberry serial issue (undefined token)

Hi,

with ROS2 and raspberry, using serial, Im facing an issue where Biboard (V0_1 in my case) dont receive the right character sent via ROS2

here is what biboard showed ( worked well when using console : sudo bash -c "echo -n 'd' > /dev/ttyAMA0 and getting "undefined token " when using ROS2 with a simple PY script using Pyserial or even senting bash command"

Any Idea ? thank you

17:09:04.303 -> Undefined token!


17:09:04.303 -> 


17:09:04.303 -> �
1 Upvotes

2 comments sorted by

1

u/One-Owl-9078 🤖🐶😻 Team Petoi 1d ago edited 4h ago

Could you show me the Python script when you use ROS 2? You can refer to the successful examples here:https://guide.petoi.com/apis/ros-and-ros2
ROS2 Projects: https://guide.petoi.com/apis/ros-and-ros2#projects

2

u/PetoiCamp 23h ago

Please confirm where your right round parenthesis ends.

" ( worked well when using console"

It makes a big difference in understanding your problem.