Diference between Gyroscope and angular velocity

Typically: "How do I... ", "How can I... " questions
Post Reply
martin
Posts: 44
Joined: 15 Mar 2016, 10:38

Diference between Gyroscope and angular velocity

Post by martin »

Hello Coppelia,

I want to know the orientation of a robot, and for this I have thought of using the gyroscope as a step to use it in the real robot. However, the following doubt arises, because doing tests, I have found results that I think should be the same... but they are not.

What is the difference between the angular speed given by ?
- Gyroscope sensor (Components/sensors):
gyroData[1]=euler[1]/dt
gyroData[2]=euler[2]/dt
gyroData[3]=euler[3]/dt

- The velocity values given by the function "sim.getVelocity(model)"

The Gyrosensor is attached to the same shape which I read the velocity with the function.

Greetings

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

Re: Diference between Gyroscope and angular velocity

Post by coppelia »

Hello,

sim.getVelocity will return the linear and angular velocity, computed by the respective physics engine. So calculation depends on the physics engine, but as far as I know, all of them will return a vector for the angular veloicity: the length of the vector gives the angular velocity (rad/sec) around the axis described by the vector (the vector passes through the shape's center of mass)

Cheers

Post Reply