ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

micro_ros_agent failing to connect to Raspberry Pi RP2040 with error: 13

asked 2023-03-20 13:18:48 -0500

Peter Klemperer gravatar image

Hi! I’m trying to implement micro ROS on the Pololu 3pi+ 2040 mobile robot. The 3pi+ 2040 has a Raspberry Pi 2040 microcontroller.

I'm currently running Humble in a Ubuntu 20.04 with Kernel 5.15.0-67-generic VM guest in UTM on an Intel Mac.

I’ve successfully compiled the Raspberry Pi Pico implementation of micro ROS and read it’s topic according to the instructions here: https://robofoundry.medium.com/raspbe...

The problem begins when I’ve loaded the Pico uf2 file on the 3pi+ 2040. Reading from the serial port looks similar to the output from the Pico, but the actual agent dies with error code 13 even though I’m running with sudo.

Does anyone know how to debug in this scenario? I am looking for next steps, if possible.

The actual output of mico ROS agent is as follows: bash ~/start_micro-ros-agent.sh [1679288574.823863] error | TermiosAgentLinux.cpp | init | open device error | device: /dev/ttyACM0, errno: 13. Please re-run with superuser privileges. Error while starting serial agent!

Where start_micro-ros-agent.sh contains:more ~/start_micro-ros-agent.sh sudo micro-ros-agent serial --dev /dev/ttyACM0 --baudrate=115200 -v6

At the very least this error message is spurious because I am running with root privileges.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2023-03-24 20:21:35 -0500

Peter Klemperer gravatar image

Not sure why, but rebuilding the micro ros agent from source works. The snap version doesn't work for this application.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-03-20 13:18:48 -0500

Seen: 483 times

Last updated: Mar 24 '23