Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Sensors: Add delay model #75

Open
wants to merge 33 commits into
base: main
Choose a base branch
from

Conversation

chrischang5
Copy link
Contributor

@chrischang5 chrischang5 commented Feb 25, 2024

Description

Add a delay modeling option, which just delays registering values in the sensor by a single update cycle. "Registering" refers to storing a value in the sensor.

Delay model will delay sensor value updates by one update cycle:
    - Sensor has initial data x0 at t = 0
    - Sensor provided new data x_1 at t = 1
    - Sensor provided new data x_2 at t = 2. At t = 2, x1 is registered into the sensor.
    - Sensor provided new data x_i at t = i. At t = i, x_{i-1} is registered into the sensor.

Verification

  • Run tests in src/boat_simulator/tests/unit/common/test_gps_sensor.py and src/boat_simulator/tests/unit/common/test_wind_sensor.py

Resources

  • N/A

chrischang5 and others added 24 commits November 4, 2023 16:07
* Bump UBCSailbot/sailbot_workspace from 1.4.2 to 1.4.7

Bumps [UBCSailbot/sailbot_workspace](https://github.com/ubcsailbot/sailbot_workspace) from 1.4.2 to 1.4.7.
- [Release notes](https://github.com/ubcsailbot/sailbot_workspace/releases)
- [Commits](UBCSailbot/sailbot_workspace@v1.4.2...v1.4.7)

---
updated-dependencies:
- dependency-name: UBCSailbot/sailbot_workspace
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update secret name

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Patrick Creighton <pcreighton429@gmail.com>
Bumps [UBCSailbot/sailbot_workspace](https://github.com/ubcsailbot/sailbot_workspace) from 1.4.7 to 1.4.8.
- [Release notes](https://github.com/ubcsailbot/sailbot_workspace/releases)
- [Commits](UBCSailbot/sailbot_workspace@v1.4.7...v1.4.8)

---
updated-dependencies:
- dependency-name: UBCSailbot/sailbot_workspace
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [UBCSailbot/sailbot_workspace](https://github.com/ubcsailbot/sailbot_workspace) from 1.4.8 to 1.5.1.
- [Release notes](https://github.com/ubcsailbot/sailbot_workspace/releases)
- [Commits](UBCSailbot/sailbot_workspace@v1.4.8...v1.5.1)

---
updated-dependencies:
- dependency-name: UBCSailbot/sailbot_workspace
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@chrischang5
Copy link
Contributor Author

I'll fix the conflicts tomorrow.

boat_simulator/common/sensors.py Outdated Show resolved Hide resolved
boat_simulator/common/sensors.py Outdated Show resolved Hide resolved
boat_simulator/common/sensors.py Outdated Show resolved Hide resolved
boat_simulator/common/sensors.py Outdated Show resolved Hide resolved
boat_simulator/common/sensors.py Outdated Show resolved Hide resolved
boat_simulator/common/sensors.py Show resolved Hide resolved
boat_simulator/common/sensors.py Show resolved Hide resolved
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding Realism to Simulated Sensor Data
3 participants