sensors.h 945 B

12345678910111213141516171819202122
  1. #include <webots/robot.h>
  2. #include <webots/keyboard.h>
  3. #include <webots/compass.h>
  4. #include <webots/accelerometer.h>
  5. #include <webots/inertial_unit.h>
  6. #include <webots/gps.h>
  7. #include <webots/gyro.h>
  8. #include <webots/motor.h>
  9. #include <webots/camera.h>
  10. void getInertia (const WbDeviceTag inertialUnit, const double *northDirection, char *buf);
  11. void getLinearVelocity (WbNodeRef nodeRef, const double *northDirection, char * buf);
  12. void getCompass (const WbDeviceTag compass, const double *northDirection, char *buf);
  13. void getAcc (const WbDeviceTag accelerometer, const double *northDirection, char *buf);
  14. void getGyro (const WbDeviceTag gyro, const double *northDirection, char *buf);
  15. void getGPS (const WbDeviceTag gps, const double *northDirection, char *buf);
  16. void getAllSensors (char *buf, const double *northDirection, WbDeviceTag gyro, WbDeviceTag accelerometer, WbDeviceTag compass, const WbDeviceTag gps, WbDeviceTag inertial_unit);