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

Publishing data from Rust to Ros

asked 2022-11-07 15:12:07 -0500

akumar3.1428 gravatar image

updated 2023-06-18 09:45:23 -0500

lucasw gravatar image

Hi, how can I publish data from rust to ROS running on two different computers. I am trying to use the following library but it does not contain any example for my use case where I want to transfer my data to another computer where ROS will be running.

https://github.com/adnanademovic/rosrust

edit retag flag offensive close merge delete

Comments

I think you wanted to copy & paste a link to this library/write its name, but it is not here. Please update your question.

ljaniec gravatar image ljaniec  ( 2022-11-07 17:38:16 -0500 )edit

I updated the question.

akumar3.1428 gravatar image akumar3.1428  ( 2022-11-07 18:31:07 -0500 )edit

This question may be related to #q409094

ravijoshi gravatar image ravijoshi  ( 2022-11-07 21:51:24 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-11-08 15:31:10 -0500

akumar3.1428 gravatar image

I figure out that It is essential to run rosbridge on the computer where you want to send data to. After installing rosbridge using the following command sudo apt-get install ros-<rosdistro>-rosbridge-server and launching using the command roslaunch rosbridge_server rosbridge_websocket.launch it was working perfectly. I would like to suggest to take care of the port number as rosbridge usually use 9090 and any different port number in the code could lead to error.

I am closing this issue as it has been solved. If the problem persists, please comment and the issue will be reopened if appropriate.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-11-07 15:12:07 -0500

Seen: 64 times

Last updated: Nov 08 '22