Get information from a manipulator

Typically: "How do I... ", "How can I... " questions
scut_whg
Posts: 6
Joined: 21 Oct 2019, 08:24

Get information from a manipulator

How to get information about the position, speed and acceleration of each joint of the robot arm? And how do you know how many state spaces a track consists of?

coppelia
Site Admin
Posts: 7450
Joined: 14 Dec 2012, 00:25

Re: Get information from a manipulator

What do you mean with track?
You can gather the position (i.e. angular or linear position) information about joints via sim.getJointPosition. If you do that in each simulation step, and if you know the current simulation time step (sim.getSimulationTimeStep), you can compute the velocity and acceleration.

Cheers