InputParameterParser

class compas_fab.fab.grasshopper.path_planning.InputParameterParser[source]

Bases: object

Simplifies some tasks related to parsing Grasshopper input parameters for path planning.

compact_list(list)[source]

Compacts a list filtering all None values.

get_config_or_pose(config_values_or_plane)[source]

Parses multiple input data types and returns a configuration or a pose represented as a transformation matrix.

Parameters:config_values_or_plane (comma-separated :obj:`string`, or :class:`Configuration` instance, – or a Rhino Plane).
get_pose(plane_or_pose)[source]

Gets a pose that is compatible with V-REP from a string containing comma-separated floats or from a Rhino/Grasshopper plane.

Parameters:plane_or_pose (comma-separated str of a Rhino Plane)
Returns:posePose instance representing a transformation matrix.