Get information from a manipulator

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

Get information from a manipulator

Post by scut_whg » 12 Nov 2019, 08:25

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

Post by coppelia » 13 Nov 2019, 16:58

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

Post Reply