Motion planning with obstacle avoidance #4027
-
Hi, I'm using calculateInverseKinematics to plan the trajectory of a 6-dof robot arm but the arm collides with the other objects in the environment. Is there a built-in function to perform motion planning with obstacle avoidance? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
@janneyow, no there isn't, you'll have to design/generate the path with some logic yourself. |
Beta Was this translation helpful? Give feedback.
-
check this out https://www.redblobgames.com/pathfinding/a-star/implementation.py when we evaluate paths, we can calculate the closest point using a KDTree or bvhtree of the obstacles. you can run a simulation of a robots 'plan' and calculate the closest point per joint to obstacles and adjust the plan or abandon it and try and generate a new one (gan?) |
Beta Was this translation helpful? Give feedback.
-
with a IK creature - I actually do a planning phase per 'step' - maybe during this phase you can raytest / adjust the foot arc |
Beta Was this translation helpful? Give feedback.
@janneyow, no there isn't, you'll have to design/generate the path with some logic yourself.