components.simulator.model package

Submodules

components.simulator.model.create_actors module

components.simulator.model.create_actors.add_block(position)
components.simulator.model.create_actors.display_path(path=[(0, 0, 0, 'top'), (1, 0, 0, 'top'), (2, 0, 0, 'top'), (3, 0, 0, 'top'), (4, 0, 0, 'top'), (5, 0, 0, 'top')])
components.simulator.model.create_actors.setup_file_names(num)
components.simulator.model.create_actors.setup_pipeline_objs(colors, robot_id, points=False)

Internal function to initialise vtk objects. :return: reader_list, actor_list, mapper_list

components.simulator.model.create_actors.setup_structure_display(blueprint, pipeline, color)

Internal function to initialise vtk objects. :return: reader_list, actor_list, mapper_list

components.simulator.model.graphics module

class components.simulator.model.graphics.AnimationUpdate(robot, robot_base, index, direction, trajectory, path, placedObstacle=False, obstacle=None)

Bases: object

components.simulator.model.graphics.MakeAxesActor(scale, xyzLabels)
class components.simulator.model.graphics.VtkPipeline(background=(0.15, 0.15, 0.15), total_time_steps=None, timer_rate=60, gif_file=None)

Bases: object

add_actor(actor)
animate()
remove_actor(actor)
render(ui=True)
screenshot(filename=None)
set_camera()
timer_tick()
components.simulator.model.graphics.axesActor2d()
components.simulator.model.graphics.axesCube(ren, x_bound=matrix([[-1.5, 1.5]]), y_bound=matrix([[-1.5, 1.5]]), z_bound=matrix([[-1.5, 1.5]]))
components.simulator.model.graphics.axesCubeFloor(ren, x_bound=matrix([[-1.5, 1.5]]), y_bound=matrix([[-1.5, 1.5]]), z_bound=matrix([[-1.5, 1.5]]), position=matrix([[ 0., -1.5, 0. ]]))
components.simulator.model.graphics.axesUniversal()
components.simulator.model.graphics.axes_x_y(ren)
components.simulator.model.graphics.circleForTrajectory(point, direction, index=None)
components.simulator.model.graphics.cubeForPath(point)
components.simulator.model.graphics.floor()
components.simulator.model.graphics.setup_structure_display(blueprint, sort=None)

Internal function to initialise vtk objects. :return: reader_list, actor_list, mapper_list

components.simulator.model.graphics.vtk_named_colors(colors)

Returns a list of vtk colors :param colors: List of color names supported by vtk :return: A list of vtk colors

components.simulator.model.graphics.vtk_named_colors_3d(colors)

Returns a list of vtk colors :param colors: List of color names supported by vtk :return: A list of vtk colors

components.simulator.model.model module

class components.simulator.model.model.Inchworm(base=None, blueprint=None, port=None, baud=9600)

Bases: components.simulator.common.serial_link.SerialLink

Module contents