concepts.simulator.shapely_kinematics.shapely_kinematics.ShapelyKinematicsSimulator#

class ShapelyKinematicsSimulator[source]#

Bases: object

Methods

add_circle(label, radius[, center, rotation])

add_object(label, shape[, center, rotation])

add_polygon(label, vertices[, center, rotation])

get_object_pose(label)

pairwise_collision([shape_a, shape_b])

plot(ax)

set_object_pose(label[, center, rotation])

Attributes

objects

The objects in the scene.

__init__()[source]#
__new__(**kwargs)#
add_circle(label, radius, center=None, rotation=0)[source]#
Parameters:
add_object(label, shape, center=None, rotation=0)[source]#
Parameters:
add_polygon(label, vertices, center=None, rotation=0)[source]#
Parameters:
get_object_pose(label)[source]#
Parameters:

label (str)

Return type:

Tuple[Point, float]

pairwise_collision(shape_a=None, shape_b=None)[source]#
Parameters:
Return type:

List[Tuple[ShapelyObject, ShapelyObject]]

plot(ax)[source]#
Parameters:

ax (Axes)

set_object_pose(label, center=None, rotation=None)[source]#
objects: Dict[str, ShapelyObject]#

The objects in the scene. The key is the name of the object, and the value is the ShapelyObject instance.