Robotics StackExchange | Archived questions

Send joint position commands from Matlab to RViz

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:

/attachedcollisionobject
/collisionobject
/execute
trajectory/cancel
/executetrajectory/feedback
/execute
trajectory/goal
/executetrajectory/result
/execute
trajectory/status
/headmountkinect/depthregistered/points
/joint
states
/movegroup/cancel
/move
group/displaycontacts
/move
group/displaycostsources
/movegroup/displaygraspmarkers
/move
group/displayplannedpath
/movegroup/fakecontrollerjointstates
/movegroup/feedback
/move
group/filteredcloud
/move
group/goal
/movegroup/monitoredplanningscene
/move
group/motionplanrequest
/movegroup/ompl/parameterdescriptions
/movegroup/ompl/parameterupdates
/movegroup/planexecution/parameterdescriptions
/move
group/planexecution/parameterupdates
/movegroup/planningscenemonitor/parameterdescriptions
/movegroup/planningscenemonitor/parameterupdates
/movegroup/result
/move
group/senseforplan/parameterdescriptions
/move
group/senseforplan/parameterupdates
/move
group/status
/movegroup/trajectoryexecution/parameterdescriptions
/move
group/trajectoryexecution/parameterupdates
/pickup/cancel
/pickup/feedback
/pickup/goal
/pickup/result
/pickup/status
/place/cancel
/place/feedback
/place/goal
/place/result
/place/status
/planningscene
/planning
sceneworld
/recognized
objectarray
/rosout
/rosout
agg
/rviz/moveit/execute
/rviz/moveit/plan
/rviz/moveit/selectplanninggroup
/rviz/moveit/stop
/rviz/moveit/updatecustomgoalstate
/rviz/moveit/update
customstartstate
/rviz/moveit/updategoalstate
/rviz/moveit/updatestartstate
/statistics
/tf
/tfstatic
/trajectory
execution_event

Thanks in advance!

Asked by not_pROS on 2019-10-21 05:33:24 UTC

Comments

Answers

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.

Asked by wonwon0 on 2019-10-29 10:10:03 UTC

Comments