Unverified Commit f98eebce authored by Pascal Roth's avatar Pascal Roth Committed by GitHub

Fixes `RayCasterCamera` demo in headless mode (#266)

# Description

This MR fixes `RayCasterCamera` demo where initialization failed in
headless mode. It also remove a print statement within the `Se2GamePad`

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Checklist

- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./orbit.sh --format`
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
parent 1b293e15
......@@ -145,7 +145,6 @@ class Se2Gamepad(DeviceBase):
cur_val = event.value
if abs(cur_val) < self.dead_zone:
cur_val = 0
print(event)
# -- left and right stick
if event.input in self._INPUT_STICK_VALUE_MAPPING:
direction, axis, value = self._INPUT_STICK_VALUE_MAPPING[event.input]
......
......@@ -101,7 +101,7 @@ def main():
rep_writer = rep.BasicWriter(output_dir=output_dir, frame_padding=3)
# Play simulator
sim.play()
sim.reset()
# Set pose: There are two ways to set the pose of the camera.
# -- Option-1: Set pose using view
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment