-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors in calling rosapi (ros2) #440
Comments
Could be related to this, have merged the fixes into my build but am getting the same error |
Same error persists across crystal/dashing/eloquent. Rosapi service call no longer works on its own in eloquent, 'type' error. |
The fact that you are seeing a field |
I tried this on Eloquent. Can you please double check that this is still a problem on Eloquent? |
Dashing doesn't have a patch which has been for Eloquent atm. I proposed a backport in ros2/rosidl_python#93. |
Purged everything and now that error is gone: however in rosapi/proxy.py; |
@justinscorringe Can you please create a pull request for the described change. ros2/ros2cli#408 makes sure the same API works for Dashing too. |
Made PR #447 |
I'm still having an erronous time exercising all of the rosapi calls, providing commands functional on past examples of rosbridge protocol;
I may have to sift through these one at a time to update on either my end or rosbridge |
Could you please advise correct format of calling rosapi services in terminal, I am having type errors with eloquent change |
If you could provide exact ready-to-run steps to reproduce the problem I am happy to try them and provide feedback what needs change. |
Fresh eloquent install, fresh ros2 branch clone of rosbridge and PR #447 applied before colcon build, environments sourced, ros2 run rosapi.py and rosbridge_websocket (launch xml seems to throw error) rosapi/Topics and subscriptions work correctly and send response i want. Websocket call (taken from wireshark to be sure)
Return
|
This issue has been marked as stale because it has been open for 180 days with no activity. Please remove the stale label or add a comment to keep it open. |
Hello, I'm trying to build a 2d map on a web page using rosbridge, but this is my error when trying to subscribe on the /map topic. [rosbridge_websocket-1] [ERROR] [1646804810.213169857] [rosbridge_websocket]: Exception calling subscribe callback: a bytes-like object is required, not 'str' |
Expected Behavior
Trying a call_service with rosapi/topics on the ros2 distro, returns this error. The caller works with ros1 installations fine. Is the protocol changed for ros2?
Actual Behavior
[ERROR] [rosbridge_websocket]: [Client 2] [id: rosbridge-control] call_service NonexistentFieldException: Message type rosapi/Topics_Request does not have a field _structure_needs_at_least_one_member
Steps to Reproduce the Problem
When doing ros2 service call;
So the ros2 service is working. But doesn't send json response.
Specifications
echo $ROS_DISTRO
): Dashinggrep DISTRIB_CODENAME /etc/lsb-release
): ubuntu 18.04roscat rosbridge_server package.xml | grep '<version>'
): ros2 1.0.2python -c 'import tornado; print tornado.version'
): 4.5.3The text was updated successfully, but these errors were encountered: