Repository navigation
CHOMP: General fixup - #626
Conversation
|
format checking failed. |
|
Last time I looked there was no check if the final path is actually collision free ... so I guess it is very rare (only due to kinematic limits) that a plan actually fails at all. Just my 2 cents if somebody should be wondering why this didn't crash more often. |
4271112 to
f2f4712
Compare
|
lgmt but i agree a test would make a great addition to this PR |
|
The reason I didn't submit the test yesterday was that I was simply unable to reproduce a failure... CHOMP at the moment seems to be perfectly fine with both collisions and not reaching goals... |
cbc2db0 to
5153df1
Compare
|
I've updated the description with what I've done so far and a few todos. Could I please get a bit of general feedback @davetcoleman @v4hn ? |
When you say "position goals" do you mean joint position goals rather than end effector position goals? Just wanted to clarify. |
davetcoleman
left a comment
There was a problem hiding this comment.
Thanks for all this effort!!
| <launch> | ||
|
|
||
| <include file="$(find moveit_planners_chomp)/test/rrbot_move_group.launch"> | ||
| </include> |
There was a problem hiding this comment.
nit: can make one line:
<include file="$(find moveit_planners_chomp)/test/rrbot_move_group.launch"/>
| <depend>moveit_core</depend> | ||
| <depend>pluginlib</depend> | ||
|
|
||
| <build_depend>cmake_modules</build_depend> |
There was a problem hiding this comment.
cmake_modules no longer needed in kinetic
| @@ -0,0 +1,84 @@ | |||
|
|
|||
| class CHOMPMoveitTest : public ::testing::Test | ||
| { | ||
| public: | ||
| moveit::planning_interface::MoveGroupInterface move_group; |
There was a problem hiding this comment.
underscore post-fix var name
| int ret = RUN_ALL_TESTS(); | ||
| spinner.stop(); | ||
| ros::shutdown(); | ||
| return ret; |
There was a problem hiding this comment.
these test are beautiful :)
| @@ -0,0 +1,20 @@ | |||
| <?xml version="1.0" ?> | |||
There was a problem hiding this comment.
i think these configuration files belong in moveit_resources
There was a problem hiding this comment.
I personally prefer to have packages carry their own resources for unit tests.
Could still move them, just say the word ;)
| jointStateToArray(planning_scene->getRobotModel(), req.start_state.joint_state, req.group_name, | ||
| trajectory.getTrajectoryPoint(0)); | ||
|
|
||
| if (req.goal_constraints[0].joint_constraints.empty()) |
There was a problem hiding this comment.
check that goal_constraints is non-empty before indexing
|
|
||
| if (req.goal_constraints[0].joint_constraints.empty()) | ||
| { | ||
| ROS_ERROR_STREAM("CHOMP only supports joint-space goals"); |
There was a problem hiding this comment.
can you namespace all your ROS_ console output with a name? ROS_ERROR_STREAM_NAMED("chomp_planner",...);
| return false; | ||
| } | ||
|
|
||
| if (not planning_scene->getRobotModel()->satisfiesPositionBounds(req.start_state.joint_state.position.data())) |
There was a problem hiding this comment.
woa not! i just learned some more C++11
There was a problem hiding this comment.
this is actually older than c++11 but microsoft decided not to support it because it would break compatibility with C code were it could have been defined using macros. Besides who wants to follow standards anyway?
Theres also 'and', 'or', ... turning it into a slightly less ugly language. See http://en.cppreference.com/w/cpp/language/operator_alternative
There was a problem hiding this comment.
I find them cute in their own weird way :)
| } | ||
| } | ||
|
|
||
| const Eigen::MatrixXd goal_state = trajectory.getTrajectoryPoint(goal_index); |
There was a problem hiding this comment.
why Xd instead of Affine3d like we normally use in moveit?
There was a problem hiding this comment.
That's what the ChompTrajectory API uses.
|
It is joint position goals, I've updated the description |
|
I have the test for the goal tolerance violation but couldn't get CHOMP to get a suboptimal result yet. Almost there! :) @davetcoleman could you quickly check the rest of the changes please? Note: there are a big bunch of ROS_INFO-s within other parts of the planner, I could remove/namespace/convert those as well, let me know. @v4hn , any reason why the folder |
davetcoleman
left a comment
There was a problem hiding this comment.
lgtm, but tests are still failing
| ROS_DEBUG("Optimization took %f sec to create", (ros::WallTime::now() - create_time).toSec()); | ||
| optimizer.optimize(); | ||
| ROS_INFO("Optimization actually took %f sec to run", (ros::WallTime::now() - create_time).toSec()); | ||
| ROS_DEBUG("Optimization actually took %f sec to run", (ros::WallTime::now() - create_time).toSec()); |
There was a problem hiding this comment.
ROS_DEBUG_NAMED("chomp_planner",
There was a problem hiding this comment.
I'll update the debug statements to named as well, good catch!
|
The tests are ok, they were failing on clang which I fixedin the last commit (not really visible but check the bottom of the PR for latest. |
|
I've also added CHOMP to the planners released with |
Lets leave that change for a separate PR once we confirm the many changes in this PR are good. There will need to be additional steps that @130s should know about |
|
👍 I'll open a new PR with that bit |
07a3d0d to
90a1c39
Compare
|
About the last test: I couldn't reproduce precision issues on the goal with successful plans. We could add creating this to the issue tracker. |
|
@v4hn could we get a merge on this please? :) |
|
@simonschmeisser any comments? |
|
@bmagyar I'm now always getting collisions (which is an improvement from a safety point of view ;) ) Update: in |
90a1c39 to
8b39cc1
Compare
|
@simonschmeisser , I've done the modification you asked for, now collision check is only done for the planning group at hand (which can only be a single one at a time). I've also rebased the PR. Once the build passes I think we are good to merge! |
|
@simonschmeisser , could you please switch change your review to approve as well? (As long as you approve of course :)) |
|
I did some short testing again and it looks impressive when it succeeds in planning and communicates correctly when it fails. Great job! lgtm! @bmagyar I'm not a maintainer of MoveIt! so I cannot approve apparently, so informally: +1 |
|
Thanks! I'll go ahead with the merge |
|
Probably somebody else should do the merge? |
|
There are plenty of feature changes that are separated into individual commits with minimal cluttering. I propose a merge via merge commit to add meaningful info to the changelog |
|
@simonschmeisser sure, I nominate @v4hn ! |
|
Since @simonschmeisser gave this a +1, I'll merge |
Description
This changes a lot, I don't think we should backport it to Indigo unless directly asked for.
Checklist