You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use an action from irobot_create_msgs, but I am not quite sure how I am supposed to format ActionClient() to properly associate the action with irobot_create_msgs. If this is instead a bug with rosbridge, please let me know.
$ python3 ros.py
Traceback (most recent call last):
File "/home/pi/repo/ros.py", line 8, in<module>
action_client = roslibpy.actionlib.ActionClient(client,
File "/home/pi/venv/lib/python3.9/site-packages/roslibpy/actionlib.py", line 234, in __init__
raise Exception('Action client failed to connect, no status received.')
Exception: Action client failed to connect, no status received.
Expected behavior
Screenshots
rosbridge log:
docker-rosbridge-1 | [rosbridge_websocket-1] [INFO] [1655330361.880834837] [rosbridge_websocket]: Client connected. 1 clients total.
docker-rosbridge-1 | [rosbridge_websocket-1] [ERROR] [1655330361.888610688] [rosbridge_websocket]: [Client 74d4ac77-fb09-4970-845a-ccd9ebcf8f7f] [id: advertise:/myrobot/goal:1] advertise: Unable to import msg class DriveDistanceActionGoal from package irobot_create_msgs. Caused by module 'irobot_create_msgs.msg' has no attribute 'DriveDistanceActionGoal'
docker-rosbridge-1 | [rosbridge_websocket-1] [INFO] [1655330361.899699162] [rosbridge_websocket]: [Client 74d4ac77-fb09-4970-845a-ccd9ebcf8f7f] Subscribed to /myrobot/status
docker-rosbridge-1 | [rosbridge_websocket-1] [ERROR] [1655330361.902967490] [rosbridge_websocket]: [Client 74d4ac77-fb09-4970-845a-ccd9ebcf8f7f] [id: subscribe:/myrobot/feedback:4] subscribe: Unable to import msg class DriveDistanceActionFeedback from package irobot_create_msgs. Caused by module 'irobot_create_msgs.msg' has no attribute 'DriveDistanceActionFeedback'
docker-rosbridge-1 | [rosbridge_websocket-1] [ERROR] [1655330361.906295577] [rosbridge_websocket]: [Client 74d4ac77-fb09-4970-845a-ccd9ebcf8f7f] [id: subscribe:/myrobot/result:5] subscribe: Unable to import msg class DriveDistanceActionResult from package irobot_create_msgs. Caused by module 'irobot_create_msgs.msg' has no attribute 'DriveDistanceActionResult'
docker-rosbridge-1 | [rosbridge_websocket-1] [INFO] [1655330364.476330826] [rosbridge_websocket]: Client disconnected. 0 clients total.
System (please complete the following information):
OS: Raspberry Pi OS (Debian) Lite aarch64 (amd64)
Python version: 3.9.2
Python package manager: pip
Additional context
rosbridge is running in a Docker container on the same machine with networking in host mode and the following Dockerfile:
The bridge is definitely functioning and connecting with the iRobot, as I see the iRobot topics in the correct namespace when I run roslibpy topic list. I also verified that the action is installed:
$ cat /opt/ros/galactic/share/irobot_create_msgs/action/DriveDistance.action
# Request# Drive a distance (meters) in a straight line
float32 distance
# Max translation speed (positive m/s), will cap negative distance to negative speed
float32 max_translation_speed 0.3
---
# Result# Pose where robot finished
geometry_msgs/PoseStamped pose
---
# Feedback# How much distance is left to travel
float32 remaining_travel_distance
The text was updated successfully, but these errors were encountered:
Description
I am trying to use an action from
irobot_create_msgs
, but I am not quite sure how I am supposed to formatActionClient()
to properly associate the action withirobot_create_msgs
. If this is instead a bug with rosbridge, please let me know.To Reproduce
Steps to reproduce the behavior:
roslibpy
ros.py
:Expected behavior
Screenshots
rosbridge log:
System (please complete the following information):
Additional context
rosbridge is running in a Docker container on the same machine with networking in host mode and the following Dockerfile:
The bridge is definitely functioning and connecting with the iRobot, as I see the iRobot topics in the correct namespace when I run
roslibpy topic list
. I also verified that the action is installed:The text was updated successfully, but these errors were encountered: