hpp-gepetto-viewer
4.14.0
Display of hpp robots and obstacles in gepetto-viewer
|
Public Member Functions | |
def | __init__ (self, publisher, client=None, 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 | displayVelocityPath (self, pathId, jointName=0) |
def | generatePlot (self, pathId, play=False, jointNames=None, cursor=False, filename=None) |
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 = None , |
|||
dt = 0.01 , |
|||
speed = 1 |
|||
) |
def gepetto.path_player.PathPlayer.__call__ | ( | self, | |
pathId | |||
) |
def gepetto.path_player.PathPlayer.displayPath | ( | self, | |
pathId, | |||
color = [0.85 , |
|||
jointName = 0 |
|||
) |
Display the path of the desired joint By default, display the path of the root
def gepetto.path_player.PathPlayer.displayVelocityPath | ( | self, | |
pathId, | |||
jointName = 0 |
|||
) |
Display the path with a color variation according to the velocity along the path green for velocity close to 0, red for velocity close to the velocity bound. This method assume that the path is represented by instances of the KinodynamicPath class
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: - abscissa: time. - ordinate: parameter values of the joint names. 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, - If filename is None, the plot is shown in a new window; - If filename is a string, the plot is written to filename.
def gepetto.path_player.PathPlayer.getTrajFromFile | ( | self, | |
fname | |||
) |
def gepetto.path_player.PathPlayer.setDt | ( | self, | |
dt | |||
) |
def gepetto.path_player.PathPlayer.setSpeed | ( | self, | |
speed | |||
) |
def gepetto.path_player.PathPlayer.toFile | ( | self, | |
pathId, | |||
fname | |||
) |
def gepetto.path_player.PathPlayer.toFileAppend | ( | self, | |
pathId, | |||
fname | |||
) |
gepetto.path_player.PathPlayer.client |
gepetto.path_player.PathPlayer.dt |
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 |