Skip to content

make constraint-aware planning more reliable in move_group_interface_tutorial.cpp - #34

Closed
mcevoyandy wants to merge 4 commits into
moveit:kinetic-develfrom
mcevoyandy:patch-1
Closed

mcevoyandy wants to merge 4 commits into
moveit:kinetic-develfrom
mcevoyandy:patch-1

Conversation

@mcevoyandy

Copy link
Copy Markdown
Contributor

Orientation constraint example only works maybe 10% of the time. Seems to work more consistently with these values. Is there a way to check you'll always get a solution? I just moved the start closer to the goal so there's no guarantee these are good points either. When the tutorial solution failed it wasn't immediately clear why. Confusing for someone trying to learn.

Orientation constraint example only works maybe 10% of the time. Seems to work more consistently with these values. Is there a way to check you'll always get a solution? I just moved the start closer to the goal so there's no guarantee these are good points either. When the tutorial solution failed it wasn't immediately clear why. Confusing for someone trying to learn.
@v4hn v4hn changed the title Update move_group_interface_tutorial.cpp make constraint-aware planning more reliable in move_group_interface_tutorial.cpp Oct 21, 2016
@davetcoleman

Copy link
Copy Markdown
Member

Did you try instead to increase the planning time? Something like my_plan.planning_time_ = 60; Seems like a similar solution that would be less invasive. There is a setPlanningTime() for this also. By default its 5 in the tutorial, I think.

@mcevoyandy

Copy link
Copy Markdown
Contributor Author

So this seems to help some. Just ran a loop and got 22/30 to complete.

@davetcoleman

Copy link
Copy Markdown
Member

That's still not very impressive. Does the tutorial show how to change which planner to use? The default, KPIECE, is probably the problem. You want RRTConnect instead. See ongoing discussion: moveit/moveit1#197

@davetcoleman

Copy link
Copy Markdown
Member

Can you update this PR to use setPlanningTime() instead?

@mcevoyandy

mcevoyandy commented Oct 28, 2016 •

Copy link
Copy Markdown
Contributor Author

Even though it still doesn't work that well?

@davetcoleman

Copy link
Copy Markdown
Member

You reported an increase in solved problems of 63%, so yes, I'd say its a big improvement.

Updated the to add planning_time_ increase and short sentence letting user know that a successful plan might not be found.
// state to a new pose.
// state to a new pose. We also increase the default planning time from 5s to 60s.

my_plan.planning_time_ = 60;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

From your testing was 60s sometimes used? That seems really really high. How about 30s so MoveIt! doesn't look as bad?

@davetcoleman

Copy link
Copy Markdown
Member

You need to rebase with kinetic-devel due to merge conflicts

// state to a new pose.
// state to a new pose. We also increase the default planning time from 5s to 10s.

my_plan.planning_time_ = 10;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm pretty sure this does not work at all.
The plan method does not read this value, but overrides it with the actual time used by the planner

You should use group.setPlanningTime(10.0) instead.

@mcevoyandy

Copy link
Copy Markdown
Contributor Author

I'm not sure, I added that line on dave's recommendation and the tutorial actually worked. I'm going to close this since increasing the time still doesn't give you a beginner tutorial that actually works. Right now there's no explanation or cue to the person taking the tutorial that this part might not work....

@mcevoyandy mcevoyandy closed this Oct 31, 2016
@v4hn

v4hn commented Oct 31, 2016

Copy link
Copy Markdown
Contributor

Right now there's no explanation or cue to the person taking the tutorial that this part might not work....

Feel free to open a request that adds only this comment. This is definitely a good idea!

@davetcoleman

Copy link
Copy Markdown
Member

@mcevoyandy see moveit/moveit1#337

BryceStevenWilley pushed a commit to BryceStevenWilley/moveit_tutorials that referenced this pull request May 5, 2018
* renaming prerequisites to getting started, removing 'tutorial' from tutorial names, improving index page, and small changes

* updating getting started with information about adding packages, catkin clean, and separating ROS install from Catkin install and MoveIt! install

* fixup, separating out developing_for_moveit

* adding moveit_visual_tools to CMakeLists
davetcoleman pushed a commit that referenced this pull request May 15, 2018
* renaming prerequisites to getting started, removing 'tutorial' from tutorial names, improving index page, and small changes

* updating getting started with information about adding packages, catkin clean, and separating ROS install from Catkin install and MoveIt! install

* fixup, separating out developing_for_moveit

* adding moveit_visual_tools to CMakeLists
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.

3 participants