0
$\begingroup$

Rosanswers logo

Hi,

We have Python program that has been developed by a team and is the core program.

This Python program calls a simulation made with ROS2, as a service, for some of the robot's moves.

We could put the Python program in a ROS2 node but this will make everything more complicated for the Python team. Including debugging.

We currently plan to have a web server to handle the communication between the two. One of the ROS2 nodes would be listening for requests from the Python program.

Or is there some "common way" to do that more efficiently?

Thanks


Originally posted by thibd on ROS Answers with karma: 33 on 2022-12-21

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

There is existing work along these lines. You should look into the rosbridge_suite, which provides a websocket for external apps to communicate with the ros system. I don't know the status of this package for ros2, but a google search does return some hits. Here is the ros1 wiki page as a starting point:

http://wiki.ros.org/rosbridge_suite


Originally posted by Mike Scheutzow with karma: 4903 on 2022-12-21

This answer was ACCEPTED on the original site

Post score: 2

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.