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

Adjustable line width for Path display + offset property #842

Conversation

tlind
Copy link
Contributor

@tlind tlind commented Feb 4, 2015

This adds a new display style called "Billboards" to the Path display, similar to how it is implemented for the Grid display. For the "Billboards" style, the line width can be adjusted, which implements enhancement request #650 and is helpful when e.g. displaying paths using a projector. The old display style "Lines" is preserved and left untouched for backwards compatibility.

I also added an "Offset" property to the Path display, that allows to shift the displayed path in relation to the origin of the fixed frame. Useful to e.g. shift the Z coordinate when displaying lots of information in Rviz that otherwise overlaps.

for( size_t i = 0; i < manual_objects_.size(); i++ )
{
Ogre::ManualObject* manual_object = manual_objects_[ i ];
Ogre::ManualObject*& manual_object = manual_objects_[ i ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain why you made this particular change?

@wjwwood
Copy link
Member

wjwwood commented Feb 7, 2015

Other than the comment this looks good, and I tested it locally and it worked as described!

One thing I ran into was that occasionally due to the nature of the billboards the paths would not render after flipping the camera around to look at them from the other side.The normal side would not flip to point at the camera until I zoomed really far in. I think this is just inherent in the billboards style point, so I don't think it needs to be addressed here. I think this is g2g.

wjwwood added a commit that referenced this pull request Feb 7, 2015
…ions

Adjustable line width for Path display + offset property
@wjwwood wjwwood merged commit 6eb7d4b into ros-visualization:indigo-devel Feb 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants