-
Notifications
You must be signed in to change notification settings - Fork 938
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
Add colours to trajectory_visualisation display #362
Add colours to trajectory_visualisation display #362
Conversation
+1 to proceeding - I've run into this limitation before and the only current way to differentiate a trajectory is by the transparency level can you share a screenshot of the updated display properties also? |
Also I'd only colour the actual moving parts of the robot, I can add that too. |
I'd suggest the wording "Color Enabled" to match how the RobotState display words "Visual Enabled" and "Collision Enabled" |
I like the idea, please proceed!
This is nice to have :-)
|
2189b86
to
9224b50
Compare
9224b50
to
4a58328
Compare
I ran clang-format, but discovered some inconsistencies around pointers and references. I'd personally prefer the .h version everywhere. Change it did in .h: Change it did in .cpp: |
clang-format: I hadn't realized that discrepancy. Feel free to investigate and propose a fix to https://github.com/ros-planning/moveit/blob/kinetic-devel/.clang-format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me - is this ready to merge?
Thanks! I'll change that clang format back by hand first, then investigate. I'd also like to tweak the behaviour a bit first, now when the .rviz config On 17 November 2016 at 18:02, Dave Coleman notifications@github.com wrote:
|
My last commit fixed the issue with saved rviz configuration of the tickbox & moved those &-s and *-s where they should be. All green from me 👍 |
We should not try to override the clang-format default, otherwise all Travis tests will fail in the future. Rather, I have investigated your observation about clang-format and made a upstream fix here: #367 Until then you should do what clang-format suggests so we can merge this |
Right! Actually my hand-fixed stuff is not failing but some of the new On 18 November 2016 at 17:01, Dave Coleman notifications@github.com wrote:
|
I've confirmed this PR works in my system - having the colored trajectory is great thanks! |
Please open PRs for Jade and Indigo if you'd like this backported (requires C++11 removal) |
Directly to the branches of this repo, right? |
Yes - create a branch in your fork for i.e. jade and open a pull request to jade-devel in this repo |
* Add colours to trajectory_visualisation display * Change label * Cleanup & change tickbox default * clang-format * force-refresh to account for saved display config * clang-format again
* robot_trajectory: Fix bugs in getRobotTrajectoryMsg function * controller_manager: Use Duration(-1) as infinite timeout * ActionBasedControllerHandle: fix dangling reference in case of timeout * TfPublisher: tf frame name can't start with '/'
Description
I needed a way to overlay trajectory displays in an easy to distinguish way so I've added colouring to the trajectory_visualisation display.
A video can be found here:
https://www.youtube.com/watch?v=Vj0KNAOtFrw
Please note that this is a PR to discover interest for this feature.
Code is probably very dirty and doesn't meet any of the merging requirements, I haven't even rebased it on the current codebase yet, it's a few weeks old. If I get a few thumbs up, I'd gladly tidy things up to be merged!
PS: I love this checklist 👍
Checklist