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

Is it possible to send data to ROS from a machine not running ROS

asked 2017-05-15 18:09:53 -0500

Eigen_ gravatar image

My problem is as follows: I need image capture from the screen of a Mac, which doesn't run ROS well (or at all from what I can really tell). I basically need to pass in the current screenshot of the mac to ROS for further processing. I have ROS on a ubuntu VM, so basically I just need something that can very lightweight pass the screenshot data from the Mac to the VM.

I was thinking of doing this via the internet, by sending the image to a website and writing a script that will pull the image in ROS but this will have a large bottleneck.

If my problem has not been well stated, please let me know and I'll try to write it better. The short is, is there any way to create a pseudo-rostopic that doesn't need the full ros stack for images so I can get the screenshot data to ROS for further image processing (and passing the results off to a robot that runs ROS).

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2017-05-16 01:18:58 -0500

gvdhoorn gravatar image

Take a look at rosbridge_suite.

edit flag offensive delete link more

Comments

Thank you! This is exactly what I was looking for

Eigen_ gravatar image Eigen_  ( 2017-05-16 01:29:22 -0500 )edit
1

answered 2017-05-16 10:07:53 -0500

I think you could write a node on the ROS machine that receives anything (video, images, files, packets, etc), using any means (sockets, serial comms, etc) and encapsulate it on the message type you need and publish a topic with it.

See the tutorials for a simple example.

edit flag offensive delete link more

Comments

Thank you! I will look into this too

Eigen_ gravatar image Eigen_  ( 2017-05-17 16:03:00 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-05-15 18:09:53 -0500

Seen: 143 times

Last updated: May 16 '17