Open simonschmeisser opened 6 years ago
There are two cases,
if you seed it with a valid trajectory (almost always true in this use case) it will ignore max_iterations_after_collision_free ... so it does nothing
commenting out that line however only brings me so far ... now it will always iterate into collision:
[ INFO] [1539957256.575202782]: Configuring Planning Scene for CHOMP ....
[ INFO] [1539957257.407219061]: Setting joint joint_a1 to position -1.20428
[ INFO] [1539957257.407275121]: Setting joint joint_a2 to position -0.670528
[ INFO] [1539957257.407326223]: Setting joint joint_a3 to position 2.09478
[ INFO] [1539957257.407344712]: Setting joint joint_a4 to position -9.14823e-14
[ INFO] [1539957257.407366592]: Setting joint joint_a5 to position -0.271432
[ INFO] [1539957257.407384098]: Setting joint joint_a6 to position -6.95887e-13
[ INFO] [1539957257.407597318]: CHOMP trajectory initialized using method: fillTrajectory
[ INFO] [1539957257.407726206]: The following collision detectors are active in the planning scene.
[ INFO] [1539957257.407750127]: HYBRID
[ INFO] [1539957257.407773164]: Active collision detector is: HYBRID
[ INFO] [1539957257.926845148]: First coll check took 0.519028888
[ INFO] [1539957257.968133172]: Forward kinematics took 0.030162728
[ INFO] [1539957257.968504038]: iteration: 0
[ INFO] [1539957257.991888202]: Chomp Got mesh to mesh safety at iter 0. Breaking out early.
[ INFO] [1539957258.018371138]: Forward kinematics took 0.026439103
[ INFO] [1539957258.045701039]: Forward kinematics took 0.026936546
[ INFO] [1539957258.072316638]: Forward kinematics took 0.026181787
[ INFO] [1539957258.099451473]: Forward kinematics took 0.026799219
[ INFO] [1539957258.125387927]: Forward kinematics took 0.025335508
[ERROR] [1539957258.125679102]: Chomp path is not collision free!
[ INFO] [1539957258.125714749]: Terminated after 6 iterations, using path from iteration 2
[ INFO] [1539957258.125728253]: Optimization core finished in 0,187774 sec
[ INFO] [1539957258.125761852]: Time per iteration 0.0313013
result: val: -2
I got the same issue. Could anyone pointing to a direction to solve it?
Hi @liuxin00738 I haven't committed anything of the above yet. You might want to have a look at the code and start fixing some small and obvious bugs and see if that leads you anywhere. There are many small and obvious bugs! Maybe it then actually starts working already. Maybe you fix all of the obvious bugs and it still does not work. My trust in this algorithm working out in the end is limited. But it will be easier to evaluate if someone invests a day or two in fixing small issues. Please open a PR with those then
I think I have the same problem:
I spent some time debugging why the CHOMP optimizer (configured as shown in this tutorial) was showing the error "Goal constraints are violated: ur5/shoulder_pan_joint" (error -14).
After some debugging with GDB, it appears the path "optimized" by Chomp is not within the goal tolerance_above
/ tolerance_below
values, whereas the input of the algorithm, computed with OMPL, is within the constraint.
For instance, when I aks for a joint to be at 1.3380 rad, with 0.0001 tolerance above or below, OMPL gives 1.33799 whereas CHOMP gives 1.3353.
Here is my CHOMP configuration file:
planning_time_limit: 10.0
max_iterations: 200
max_iterations_after_collision_free: 5
smoothness_cost_weight: 0.1
obstacle_cost_weight: 1.0
learning_rate: 0.01
smoothness_cost_velocity: 0.0
smoothness_cost_acceleration: 1.0
smoothness_cost_jerk: 0.0
ridge_factor: 0.01
use_pseudo_inverse: false
pseudo_inverse_ridge_factor: 1e-4
joint_update_limit: 0.5
collision_clearence: 0.2
collision_threshold: 0.07
use_stochastic_descent: true
enable_failure_recovery: true
max_recovery_attempts: 5
trajectory_initialization_method: "fillTrajectory"
Is there something I don't understand about CHOMP? Is it one of its limits, and should I lower my tolerance? If yes, how can I do it with the RVIZ MoveIt! plugin?
does chomp supports x y z roll pitch yaw as input for a goal pose
Description
i just tried to test the new chomp planning adapter by following the moveit-tutorials PR https://github.com/ros-planning/moveit_tutorials/pull/220/files
Is it supposed to work already? Here's the output from trying to plan towards a JointPosition target. Using a pose target gives me an error that pose target are not yet supported
heres the log output:
From MoveItErrorCodes:
GOAL_CONSTRAINTS_VIOLATED = -14,
Your environment
chomp_planning.yaml