sensors.h 990 B

1234567891011121314151617181920212223
  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. WbNodeRef self_node;
  11. double *linear_velocity;
  12. void getInertia (const WbDeviceTag inertialUnit, const double *northDirection, char *buf);
  13. void getLinearVelocity (WbNodeRef nodeRef, const double *northDirection, char * buf);
  14. void getCompass (const WbDeviceTag compass, const double *northDirection, char *buf);
  15. void getAcc (const WbDeviceTag accelerometer, const double *northDirection, char *buf);
  16. void getGyro (const WbDeviceTag gyro, const double *northDirection, char *buf);
  17. void getGPS (const WbDeviceTag gps, const double *northDirection, char *buf);
  18. void getAllSensors (char *buf, const double *northDirection, WbDeviceTag gyro, WbDeviceTag accelerometer, WbDeviceTag compass, const WbDeviceTag gps, WbDeviceTag inertial_unit);