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
Diference between Gyroscope and angular velocity
Re: Diference between Gyroscope and angular velocity
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
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