micro-ros-agents stops executing when connecting RPi Pico, gives "open device error"
sejego opened this issue · 3 comments
sejego commented
- Hardware description: Raspberry Pi Pico
- Installation type: cloned micro-ros from Github repo and built it. (e.g. i did not use snap/docker to run it)
- Version or commit hash: latest for foxy
Steps to reproduce the issue
- Flash the example code on the Raspberry Pi Pico
- Run the micro-ros-agent for serial output with
ros2 run micro_ros_agent micro_ros_agent serial --dev /dev/ttyACM0 baudrate=115200
- connect Raspberry Pi Pico to PC
Expected behavior
micro-ros-agent recognizes that there is a connection in serial and starts accepting messages
Actual behavior
Open device error and micro-ros-agent stops executing
Additional information
Provided log:
sejego@pop-os:~/microros_ws$ ros2 run micro_ros_agent micro_ros_agent serial --dev /dev/ttyACM0 baudrate=115200
[1646397373.328044] error | TermiosAgentLinux.cpp | init | open device error | device: /dev/ttyACM0, errno: 13. Please re-run with superuser privileges.
Error while starting serial agent!
Previously I was running the agent with connected Teensy 4.0, everything was working smoothly.
pablogs9 commented
device: /dev/ttyACM0, errno: 13. Please re-run with superuser privileges.
sejego commented
Yeah, indeed changing rules on /dev/tty/ACM0
fixes the problem.
Is it a normal behaviour that Pico required such a step and other boards do not?
pablogs9 commented
I guess that it depends on your system permissions.
I'm closing, please feel free to reopen if you have further questions.