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

Send joint position commands from Matlab to RViz

asked 2019-10-21 05:33:24 -0500

not_pROS gravatar image

Using Matlab I do some inverse kinematics calculations to get joint values for an arm. I then want to "command" the joints in my RViz model to move to those values.

Being very new to the ROS environment I was hoping that this could be done by publishing the Matlab values to one of the topics that appear when I launch the demo.launch file. However, looking at the different topics and their message types, it, to me, is not obvious which one I should publish to (if this is the right approach).

I can see the following topics:


Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-10-29 10:10:03 -0500

wonwon0 gravatar image

What robot model do you use in RVIZ?

If you provide a link to the code that brings up the robot in RVIZ we could help you.

Meanwhile you can do these things:

Identify what message the controller of the robot in RVIZ subcribes to. Once done, you will be able to identify what message you need to publish in matlab.

edit flag offensive delete link more

Question Tools



Asked: 2019-10-21 05:33:24 -0500

Seen: 368 times

Last updated: Oct 29 '19