-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added a fake laserscanner #56
base: master
Are you sure you want to change the base?
Conversation
One disadvantage I see with this method is that the scans cannot be changed to corrupted at runtime. |
This can be problematic. isn't it possible to add a service to change this? |
Working on it. Will add another commit. |
Original code from here. Unfortunately, it not a python module. So copy-pasted with due credits metacontrol_sim/scripts/fake_laserscanner.py Lines 18 to 24 in 392eced
The inherited class now exposes a service which can be used to "corrupt" the data:
The transformation function can be set as an
Currently the range values are simply set to 0s. |
@marioney can you review this? |
Related to #52
By default publishes the laser scan from
/scan
topic as it is:The data can be "corrupted" by adding a transformation function: