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

Show attached bodies trail in RViz #1766

Merged
merged 5 commits into from
Nov 23, 2019

Conversation

Jntzko
Copy link
Contributor

@Jntzko Jntzko commented Nov 22, 2019

Description

Attached bodies were not included in the trail visualization of a trajectory, changing the type from rviz::Robot to RobotStateVisualization solves this issue (#190).

Anyway, the bodies color is always green, I didn't find a proper way to get the color of the attached object and set it in the update method.

Checklist

  • Required by CI: Code is auto formatted using clang-format
  • Extend the tutorials / documentation reference
  • Document API changes relevant to the user in the MIGRATION.md notes
  • Create tests, which fail without this PR reference
  • Include a screenshot if changing a GUI
  • While waiting for someone to review your request, please help review another open pull request to support the maintainers

rviz::robot didn't include attached objects in the visualization,
RobotStateVisualization does.
Copy link
Contributor

@v4hn v4hn left a comment

Choose a reason for hiding this comment

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

Thanks!

Anyway, the bodies color is always green, I didn't find a proper way to get the color of the attached object and set it in the update method.

Objects only have colors in the PlanningScene due to the implementation and changing this is outside the scope of this patch.

Approved after addressing the minor comment inline.

@rhaschke
Copy link
Contributor

Objects only have colors in the PlanningScene due to the implementation and changing this is outside the scope of this patch.

That's not perfectly true. There is a default_attached_body_color_, both in the PlanningSceneDisplay and the TrajectoryVisualization (the former forwards the color value to the latter). This color should be used for the trail as well. I will push corresponding changes immediately.

@v4hn
Copy link
Contributor

v4hn commented Nov 23, 2019

That's not perfectly true.

true! thanks for adding patches for that!

@rhaschke rhaschke merged commit 383d367 into moveit:melodic-devel Nov 23, 2019
rhaschke pushed a commit that referenced this pull request Nov 23, 2019
rhaschke pushed a commit that referenced this pull request Nov 24, 2019
rhaschke pushed a commit to ubi-agni/moveit that referenced this pull request Nov 24, 2019
rhaschke pushed a commit to ubi-agni/moveit that referenced this pull request Nov 24, 2019
rhaschke pushed a commit that referenced this pull request Nov 24, 2019
v4hn pushed a commit to v4hn/moveit that referenced this pull request Mar 30, 2020
v4hn pushed a commit to v4hn/moveit that referenced this pull request Mar 31, 2020
v4hn pushed a commit to v4hn/moveit that referenced this pull request Mar 31, 2020
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.

None yet

3 participants