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

[plotting] add RViz like plot APIs for debugging #2304

Merged
merged 6 commits into from
Mar 26, 2020

Conversation

madratman
Copy link
Contributor

@madratman madratman commented Nov 8, 2019

Adds a few APIs to plot visualization markers, inspired by RViz markers

simPlotPoints(points=list[Vector3r], color_rgba=[1.0, 0.0, 0.0, 1.0], size = 10.0, duration = -1.0, is_persistent = False):

simPlotLineStrip(points=list[Vector3r], color_rgba=[1.0, 0.0, 0.0, 1.0], thickness = 5.0, duration = -1.0, is_persistent = False):

simPlotLineList(points=list[Vector3r], color_rgba=[1.0, 0.0, 0.0, 1.0], thickness = 5.0, duration = -1.0, is_persistent = False):

simPlotArrows(points_start=list[Vector3r], points_end=list[Vector3r], color_rgba=[1.0, 0.0, 0.0, 1.0], thickness = 5.0, arrow_size = 2.0, duration = -1.0, is_persistent = False):

simPlotStrings(strings=list[string], positions=list[Vector3r], scale = 5, color_rgba=[1.0, 0.0, 0.0, 1.0], duration = -1.0):

simPlotTransforms(poses=list[Pose], scale = 5.0, thickness = 5.0, duration = -1.0, is_persistent = False):

simPlotTransformsWithNames(poses=list[Pose], names=list[string], tf_scale = 5.0, tf_thickness = 5.0, text_scale = 10.0, text_color_rgba = [1.0, 0.0, 0.0, 1.0], duration = -1.0):

Some usage examples in plot_markers.py

@madratman madratman force-pushed the PR/plot_APIs branch 2 times, most recently from 275106d to f660720 Compare March 26, 2020 05:55
@madratman madratman merged commit 708b190 into microsoft:master Mar 26, 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

1 participant