VrepPlanner.plan_motion_to_config
- VrepPlanner.plan_motion_to_config(*args, **kwargs)[source]
Find a path plan to move the selected robot from its current position to one of the goal_configs.
This function is useful when it is required to get a path plan that ends in one specific goal configuration.
- Parameters
robot (
compas_fab.robots.Robot) – The robot instance for which the motion plan is being calculated.goal_configs (
listofConfiguration) – List of target or goal configurations.group (
int) – Integer referencing the desired robot group.start_configuration (
None) – Unused parameter.options (
dict) – Dictionary containing the following key-values pairs:"metric_values": (listoffloat) List containing one value per configurable joint. Each value ranges from 0 to 1, where 1 indicates the axis/joint is blocked and cannot move during inverse kinematic solving."collision_meshes": (listofcompas.datastructures.Mesh) Collision meshes to be taken into account when calculating the motion plan. Defaults toNone."planner_id": (str) Name of the planner to use. Defaults torrtconnect."trials": (int) Number of search trials to run. Defaults to1."resolution": (float) Validity checking resolution. This value is specified as a fraction of the space’s extent. Defaults to0.02."gantry_joint_limits": (listof float) List of 6 floats defining the upper/lower limits of gantry joints. Use this if you want to restrict the working area of the path planner."arm_joint_limits": (listof float) List of 12 floats defining the upper/lower limits of arm joints. Use this if you want to restrict the working area of the path planner."shallow_state_search": (bool) True to search only a minimum of valid states before searching a path, False to search states intensively."optimize_path_length": (bool) True to search the path with minimal total length among all trials, False to return the first valid path found. It only affects the output if trials > 1."log": (Logger) Logger object to aid debugging. Default toNone.
- Returns
list – List of
Configurationobjects representing the collision-free path to thegoal_configs.