How do I connect my wifi robot to matlab via ROS?

I am trying to connect our Dr. Robot X80SVP rovers to matlab using the robotics toolbox. I'm still a bit confused on exactly how to connect and what to call the robot (node,host,etc..). The rovers have their own IP address as do their cameras mounted on the front. Could someone show me an example of how to do this?

답변 (1개)

Sebastian Castro
Sebastian Castro 2015년 7월 9일

0 개 추천

You want MATLAB to connect to the IP address of whatever is running the ROS Master. Is that on the rover itself?
Once you have the IP address, you just type rosinit('ip_addr') in MATLAB.
- Sebastian

댓글 수: 2

I was under the impression that the computer running matlab was the master and that anything else connected to it was a node of some kind.
Yes, that's one way of doing it. MATLAB will create its own master if you type "rosinit" without any arguments. Then, your other devices can connect to the IP address of the computer running MATLAB.
- Sebastian

댓글을 달려면 로그인하십시오.

카테고리

질문:

2015년 7월 8일

댓글:

2015년 7월 9일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by