displays a path by sampling configurations along the path. More...
Public Member Functions | |
def | __init__ (self, publisher, client=hpp.corbaserver.Client(), dt=0.01, speed=1) |
def | setDt (self, dt) |
def | setSpeed (self, speed) |
def | __call__ (self, pathId) |
def | displayPath (self, pathId, color=[0.85, jointName=0) |
def | generatePlot (self, pathId, play=False, jointNames=None, cursor=False, filename=None) |
Generate a plot with the following datas: More... | |
def | toFile (self, pathId, fname) |
def | toFileAppend (self, pathId, fname) |
def | getTrajFromFile (self, fname) |
def | fromFile (self, fname) |
Public Attributes | |
client | |
publisher | |
dt | |
speed | |
start | |
end | |
tau | |
displays a path by sampling configurations along the path.
def gepetto.path_player.PathPlayer.__init__ | ( | self, | |
publisher, | |||
client = hpp.corbaserver.Client() , |
|||
dt = 0.01 , |
|||
speed = 1 |
|||
) |
def gepetto.path_player.PathPlayer.__call__ | ( | self, | |
pathId | |||
) |
References hpp::corbaserver::benchmark::Benchmark.client, hpp::corbaserver::robot::Robot.client, gui::matplotlib_example::Plugin.client, hpp::corbaserver::problem_solver::ProblemSolver.client, gui::pythonwidget::Plugin.client, gui::blenderexport::Plugin.client, gepetto.path_player.PathPlayer.client, gepetto.gui.path_graph.Plugin.client, gepetto.path_player.PathPlayer.dt, gepetto.path_player.PathPlayer.end, gepetto.path_player.PathPlayer.publisher, gepetto.path_player.PathPlayer.speed, and gepetto.path_player.PathPlayer.start.
def gepetto.path_player.PathPlayer.displayPath | ( | self, | |
pathId, | |||
color = [0.85 , |
|||
jointName = 0 |
|||
) |
References hpp::corbaserver::benchmark::Benchmark.client, hpp::corbaserver::problem_solver::ProblemSolver.client, gui::blenderexport::Plugin.client, hpp::corbaserver::robot::Robot.client, gui::matplotlib_example::Plugin.client, gui::pythonwidget::Plugin.client, gepetto.path_player.PathPlayer.client, gepetto.gui.path_graph.Plugin.client, gepetto.path_player.PathPlayer.dt, gepetto.path_player.PathPlayer.end, gepetto.path_player.PathPlayer.publisher, and gepetto.path_player.PathPlayer.start.
def gepetto.path_player.PathPlayer.fromFile | ( | self, | |
fname | |||
) |
def gepetto.path_player.PathPlayer.generatePlot | ( | self, | |
pathId, | |||
play = False , |
|||
jointNames = None , |
|||
cursor = False , |
|||
filename = None |
|||
) |
Generate a plot with the following datas:
If play is True, the path is played when the data to be plotted are generated.
If cursor is True, filename must be a string which will be formatted with one integer (frame index). For each frame, a cursor is drawn at the current time and the plot is written to the formatted filename.
If cursor is False, only one plot is generated. Then,
References hpp::corbaserver::benchmark::Benchmark.client, hpp::corbaserver::robot::Robot.client, gui::matplotlib_example::Plugin.client, hpp::corbaserver::problem_solver::ProblemSolver.client, gui::pythonwidget::Plugin.client, gui::blenderexport::Plugin.client, gepetto.path_player.PathPlayer.client, gepetto.gui.path_graph.Plugin.client, gepetto.path_player.PathPlayer.dt, gepetto.path_player.PathPlayer.end, gepetto.path_player.PathPlayer.publisher, gepetto.path_player.PathPlayer.speed, and gepetto.path_player.PathPlayer.start.
def gepetto.path_player.PathPlayer.getTrajFromFile | ( | self, | |
fname | |||
) |
def gepetto.path_player.PathPlayer.setDt | ( | self, | |
dt | |||
) |
References gepetto.path_player.PathPlayer.dt.
def gepetto.path_player.PathPlayer.setSpeed | ( | self, | |
speed | |||
) |
References gepetto.path_player.PathPlayer.speed.
def gepetto.path_player.PathPlayer.toFile | ( | self, | |
pathId, | |||
fname | |||
) |
References hpp::corbaserver::benchmark::Benchmark.client, hpp::corbaserver::problem_solver::ProblemSolver.client, gui::matplotlib_example::Plugin.client, gui::pythonwidget::Plugin.client, hpp::corbaserver::robot::Robot.client, gui::blenderexport::Plugin.client, gepetto.path_player.PathPlayer.client, gepetto.gui.path_graph.Plugin.client, gepetto.path_player.PathPlayer.dt, and gepetto.path_player.PathPlayer.speed.
def gepetto.path_player.PathPlayer.toFileAppend | ( | self, | |
pathId, | |||
fname | |||
) |
References hpp::corbaserver::benchmark::Benchmark.client, hpp::corbaserver::problem_solver::ProblemSolver.client, gui::matplotlib_example::Plugin.client, gui::pythonwidget::Plugin.client, gui::blenderexport::Plugin.client, hpp::corbaserver::robot::Robot.client, gepetto.path_player.PathPlayer.client, gepetto.gui.path_graph.Plugin.client, and gepetto.path_player.PathPlayer.dt.
gepetto.path_player.PathPlayer.client |
Referenced by gepetto.path_player.PathPlayer.__call__(), gepetto.viewer.Viewer.addLandmark(), gepetto.viewer.Viewer.computeObjectPosition(), gepetto.path_player.PathPlayer.displayPath(), gepetto.viewer.Viewer.displayPathMap(), gepetto.viewer.Viewer.displayRoadmap(), gepetto.viewer.Viewer.drawRobotAABB(), gepetto.path_player_gui.PathPlayerGui.fillComboBoxXSelect(), gepetto.path_player.PathPlayer.generatePlot(), gepetto.viewer.Viewer.loadObstacleModel(), gepetto.manipulation.viewer.Viewer.loadUrdfInGUI(), gepetto.manipulation.viewer.Viewer.loadUrdfObjectsInGUI(), gepetto.path_player_gui.PathPlayerGui.on_pathindex_changed(), gepetto.path_player_gui.PathPlayerGui.on_pathscale_changed(), gepetto.viewer.Viewer.publishRobots(), gepetto.path_player_gui.PathPlayerGui.refresh(), gepetto.viewer.Viewer.solveAndDisplay(), gepetto.viewer.Viewer.startCapture(), gepetto.viewer.Viewer.stopCapture(), gepetto.path_player.PathPlayer.toFile(), gepetto.path_player.PathPlayer.toFileAppend(), and gepetto.viewer.Viewer.toggleVisual().
gepetto.path_player.PathPlayer.dt |
Referenced by gepetto.path_player.PathPlayer.__call__(), gepetto.path_player.PathPlayer.displayPath(), gepetto.path_player.PathPlayer.generatePlot(), gepetto.path_player_gui.PathPlayerGui.on_play_clicked(), gepetto.path_player.PathPlayer.setDt(), gepetto.path_player.PathPlayer.toFile(), and gepetto.path_player.PathPlayer.toFileAppend().
gepetto.path_player.PathPlayer.end |
gepetto.path_player.PathPlayer.publisher |
gepetto.path_player.PathPlayer.speed |
gepetto.path_player.PathPlayer.start |
gepetto.path_player.PathPlayer.tau |