robotics_toolbox.render.planar_manipulator_renderer.PlanarManipulatorRenderer

class robotics_toolbox.render.planar_manipulator_renderer.PlanarManipulatorRenderer(ax, robot, **kwargs)

Bases: object

Parameters:
__init__(ax, robot, **kwargs)
Parameters:
Return type:

None

Methods

__init__(ax, robot, **kwargs)

plot_init([color, lw, ms])

Plot the robot.

plot_line_between_points(a, b, *args, **kwargs)

Plot line between two given 2D points a and b.

update()

plot_init(color='k', lw=3, ms=7)

Plot the robot. It returns the plt_objects, that you can use to update the robot pose in animation.

plot_line_between_points(a, b, *args, **kwargs)

Plot line between two given 2D points a and b. Other arguments passed to ax.plot function.

Parameters:
  • a (_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes])

  • b (_SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes])