UBCSailbot / sailbot_workspace

UBC Sailbot's monorepo
https://ubcsailbot.github.io/sailbot_workspace/main/
Apache License 2.0
4 stars 1 forks source link

Update physics engine node to use WindSensor #426

Open eomielan opened 1 month ago

eomielan commented 1 month ago

Purpose

The purpose of this issue is to update the physics engine node (boat_simulator/nodes/physics_engine/physics_engine_node.py) to use the WindSensor class.

Description

  1. Create a private instance of the WindSensor class.
  2. Create a new private method: __update_wind_sensor() and update the wind attribute of the WindSensor instance you created in step 1 using the wind generator (self.__wind_generator).
  3. Call this method right before self.__update_boat_state() in the __publish() function.
  4. Update the self.__update_boat_state() method to use the wind sensor data rather than the wind generator so that we introduce noise.

Resources