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

Revision history [back]

click to hide/show revision 1
initial version

I can only provide you with online references, but they should be sufficent for your problem.

I am assuming you already installed ROS on your pc. Then you can follow this tutorial to communicate between Matlab and the ROS master. http://mathworks.com/help/robotics/examples/get-started-with-ros.html

The next step would be communicate between your C++ program and the ros master. You can follow this tutorial: http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber%28c%2B%2B%29

(If you are completly new to ros, you should probably begin right here to understand the core concepts: http://wiki.ros.org/ROS/Tutorials)

I hope this is of any help

I can only provide you with online references, but they should be sufficent for your problem.

I am assuming you already installed ROS on your pc. Then you can follow this tutorial to communicate between Matlab and the ROS master. http://mathworks.com/help/robotics/examples/get-started-with-ros.html

The next step would be communicate between your C++ program and the ros master. You can follow this tutorial: http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber%28c%2B%2B%29

(If you are completly new to ros, you should probably begin right here to understand the core concepts: http://wiki.ros.org/ROS/Tutorials)

I hope this is Further tips: Your Matlab progam will be a publisher. It will publish messages on a topic (you can choose the name of any helpthe topic yourself). The C++ program will be a subscriber. You subscribe to the previous defined topic and a callback will be called everytime the Matlab program publishes a message. Inside the callback you can use the message for whatever you need.

Check the default message types to see if any of them fits your data structure or define your own message type, as seen in the tutorials.