Robotics StackExchange | Archived questions

Joint->GetVelocity() returns non-zero for blocked joint

Hi, I have a robot with wheels controlled by gazeborosskidsteerdrive, which uses Joint Motors approach for setting joint velocities (i.e. SetParam("fmax"), SetParam("vel")). But strange thing happens when the joint/wheel is physically blocked in simulation. The joint position is not changing due to the block, but GetVelocity still returns the value close to that set by SetParam("vel"). While what I expect is zero velocity since the wheel is not rotating. This results in wrong wheel odometry generated. Is this behavior expected?

Asked by Pashek1 on 2021-07-08 10:09:39 UTC

Comments

Answers