Why is the result of sim. getObject Velocity inaccurate?
Posted: 26 May 2023, 07:27
Hello,
I use zmqRemoteApi and Python for remote control.
I used sim.setJointTargetVelocity to set the speed of both sides of the car to 0.5, but the linear speed obtained using sim.getObjectVelocity differs significantly from the set speed.
The result obtained is [-0.09996414184570312, 0.0010907649993896484, -1.773238182067871e-05]. The document says to use sim.handleflag_axis, I don't know how to set it, so I directly used the liner, angle=self. sim.getObjectVelocity (self. robot | self. sim.handleflag_axis), and the result remained unchanged.
I want to obtain the linear and angular velocities of the car in a relative coordinate system. What should I do?
thanks a lot
I use zmqRemoteApi and Python for remote control.
I used sim.setJointTargetVelocity to set the speed of both sides of the car to 0.5, but the linear speed obtained using sim.getObjectVelocity differs significantly from the set speed.
The result obtained is [-0.09996414184570312, 0.0010907649993896484, -1.773238182067871e-05]. The document says to use sim.handleflag_axis, I don't know how to set it, so I directly used the liner, angle=self. sim.getObjectVelocity (self. robot | self. sim.handleflag_axis), and the result remained unchanged.
I want to obtain the linear and angular velocities of the car in a relative coordinate system. What should I do?
thanks a lot