realtime data communication between two c++ executeables one windows and other in virtual machine ubuntu

StackOverflow https://stackoverflow.com/questions/20694146

Pergunta

I am running ros to control a robot using ubuntu. But the drivers are available for windows only. I have setup a virtual machine where the robot controller is built on roscpp

I want pass these values generated using ros to a cpp in windows. it should be realtime. data should be flowing back and forth. data: float32 array dimension is 7

Please help me with an example.

Foi útil?

Solução

One of the best ways to pass real-time data between two machines is UDP sockets.

You can find some good examples for windows at MSDN UDP Example

One for linux at Linux UDP Example

Outras dicas

I used ROS on windows and ubuntu. TCP/IP communication - doesn't matter if the ubuntu machine is on virtual machine. Set the network adapter to Host Only.

ROS Master on Windows. Start executable on Ubuntu and it should post values in the ROS Master which is running on windows. The executable on Windows can subscribe to those messages.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top