micro-ROS / micro-ROS-demos

Sample code using rclc and rclcpp implementations.
Apache License 2.0
84 stars 24 forks source link

Application stuck on "Waiting for device" #79

Open Cagdas4 opened 12 months ago

Cagdas4 commented 12 months ago

Issue template

Steps to reproduce the issue

Run the application on an Ubuntu 22.04.3 VM on a Windows 11 machine Launch the application normally through "Docker-compose up -d"

Expected behavior

Board is recognized

Actual behavior

App stuck on "Waiting for device"

Additional information

I've tried everything that came to mind, the connection is there, the firmware is properly configured and the board is recognized. I granted every access permission I could think of, as well.

I'd really appreciate any help or advice, and please let me know if you'd like me to provide more information.

Update: After days of trying, it magically seems to have resolved itself. However, when I list the ros2 topics in my terminal, nothing seems to appear. When I try to publish on the LEDs, it can't find any subscriptions either.

Cagdas4 commented 12 months ago

I'm having issues with micro-ros-agent as well. Though I don't know if they're related. When I try to launch it with my board attached, it says "error 13 please run with superuser privileges. Error while starting serial agent!". Again, I tried to give it any permission I could think of.

pablogs9 commented 11 months ago

Hello @Cagdas4,

Cagdas4 commented 11 months ago

Hi @pablogs9

Thank you for your reply. I guess I forgot to mention I already tried adding the user to dialout as well as using sudo. No results there.

I'll give the up to date repository a shot too. Thanks for the heads up.

pablogs9 commented 11 months ago

The serial permission problem shall be solved with one of this options: https://stackoverflow.com/a/27886201

Cagdas4 commented 11 months ago

I did follow that post when dealing with this problem initially. But I don't think I tried the one using vim. I'll go over them and give vim a shot. Thanks!