Skip to content
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

How to add DynamicLines #1039

Closed
Masa0u0 opened this issue Aug 16, 2024 · 2 comments
Closed

How to add DynamicLines #1039

Masa0u0 opened this issue Aug 16, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Masa0u0
Copy link

Masa0u0 commented Aug 16, 2024

In Gazebo Classic, we can create a DynamicLine by inheriting from gazebo::VisualPlugin and invoking gazebo::rendering::Visual::createDynamicLine. Is it possible to perform a similar operation in Gazebo Harmonic? Although the class gz::rendering::OgreDynamicLines does exist, I am unsure of the method to generate it within a scene.

@Masa0u0 Masa0u0 added the enhancement New feature or request label Aug 16, 2024
@iche033
Copy link
Contributor

iche033 commented Aug 16, 2024

there is currently no public API in scene to create a dynamic line. The alternative is to use a Marker and set the type to gz::rendering::MarkerType::MT_LINE_LIST - this tells the marker to use dynamic lines. As an example, the MarkerMananger in gz-sim uses this to draw shapes and lines in the scene.

@Masa0u0
Copy link
Author

Masa0u0 commented Aug 16, 2024

@iche033
Thank you very much!

@iche033 iche033 closed this as completed Aug 16, 2024
@github-project-automation github-project-automation bot moved this from Inbox to Done in Core development Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants