Open hsd-dev opened 4 years ago
@chcorbato
One disadvantage I see with this method is that the scans cannot be changed to corrupted at runtime.
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?
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
The inherited class now exposes a service which can be used to "corrupt" the data:
rosservice call /transform_range "data: true"
The transformation function can be set as an arg
in the launch file:
https://github.com/rosin-project/metacontrol_sim/blob/392ecede1ca923e5e170df6ca34205d45080a5d4/launch/fake_laserscanner_bringup.launch#L4
Currently the range values are simply set to 0s.
@marioney can you review this?
Related to https://github.com/rosin-project/metacontrol_sim/issues/52
By default publishes the laser scan from
/scan
topic as it is:The data can be "corrupted" by adding a transformation function: