Skip to content
This repository has been archived by the owner on Feb 3, 2025. It is now read-only.

RaySensor ray visualisations always start at origin of sensor #2018

Open
osrf-migration opened this issue Jul 25, 2016 · 8 comments
Open

RaySensor ray visualisations always start at origin of sensor #2018

osrf-migration opened this issue Jul 25, 2016 · 8 comments
Labels
all bug Something isn't working major rendering

Comments

@osrf-migration
Copy link

Original report (archived issue) by Deanna Hood (Bitbucket: d_hood).

The original report had attachments: Screenshot from 2016-07-27 11-18-52 - 1.png


RaySensors have an option for the minimum range of the sensor. This is respected in the collisions (https://github.com/osrf/gazebo/blob/1655342441d4ffdcc472faf96cf818c7518e4a96/gazebo/physics/MultiRayShape.cc#L109) but not in the visuals.

No matter what the value of the minimum range, the visualisation of the sensor's rays always start at the origin of the sensor, not at the min range.

using 7.3.1

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • set assignee_account_id to "557058:095b1e12-74ed-4e20-b44f-2f0745b616e0"
  • set assignee to "nkoenig (Bitbucket: nkoenig, GitHub: nkoenig)"

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


  • set component to "rendering"

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


See pull request #2409

@osrf-migration
Copy link
Author

Original comment by Deanna Hood (Bitbucket: d_hood).


  • set attachment to "Screenshot from 2016-07-27 11-18-52 - 1.png"

pr 2409 would help in suggesting to the user that the min range is being respected.

It wouldn't exactly be what I would want for my use case, however. The context is that I am looking to simulate parallel rays by moving the sensor origin far from the link to which the sensor is attached (screenshot attached). Visualisations of the rays between the sensor origin and min range will be a pain in this case, regardless of their colour.

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


Can you describe what you want to see in the render window?

@osrf-migration
Copy link
Author

Original comment by Deanna Hood (Bitbucket: d_hood).


Ideally, I would like to see transparent rays from the link origin to min range. But I appreciate that that is quite specific to this use case. So, as an alternative, I would be happy if the visualisations from the sensor origin to min range were invisible/able to be made invisible, and I could only see the parts of the rays that are actually 'sensing'.

It may just be that putting the sensor far from the link origin is not recommended practice, and I will just have to decide between all-or-nothing ray visualisation - I could understand that.

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


A configurable laser visualization would be useful. A visual plugin could handle unique use cases.

I'll submit an improved version of pull request #2409, which will get you most of the desired behavior.

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • set version to "all"

@osrf-migration osrf-migration added major rendering bug Something isn't working all labels Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
all bug Something isn't working major rendering
Projects
None yet
Development

No branches or pull requests

1 participant