webots icon indicating copy to clipboard operation
webots copied to clipboard

How do I use the gyroscope of the robot khr3hv ?

Open hbuxiaofei opened this issue 1 year ago • 2 comments

The robot khr3hv doesn't seem to have a gyroscope.

hbuxiaofei avatar Sep 15 '23 09:09 hbuxiaofei

in the proto of the khr3hv, i can read

      DEF KHR3HV_Accelerometer Pose {
        translation -0.0833 0.0345 0.0
      }
      DEF KHR3HV_Gyro Pose {
        translation -0.0833 0.0345 -0.024
      }

Which indicate that their are no actual accelerometer nor gyroscope on the bot. What about adding them ? @omichel Replacing the previous code by

      DEF KHR3HV_Accelerometer Accelerometer {
        translation -0.0833 0.0345 0.0
      }
      DEF KHR3HV_Gyro Gyro {
        translation -0.0833 0.0345 -0.024
      }

should make it, at least for the OP usage just checked but the khr2hv don't suffer the same problem, but maybe other could, idk

ShuffleWire avatar Feb 20 '24 09:02 ShuffleWire

Yes, feel free to propose a patch for this.

omichel avatar Feb 20 '24 09:02 omichel