hpp-gepetto-viewer  4.9.0
Display of hpp robots and obstacles in gepetto-viewer
gepetto.blender.exportmotion Namespace Reference

Functions

def exportState (viewer, robot, configuration, outData)
 Export object position for a given robot configuration. More...
 
def writeDataToFile (robot, outData, filename)
 Export object position for a given robot configuration. More...
 
def exportStates (viewer, robot, configurations, filename)
 Export object positions for a list of robot configurations. More...
 
def exportPath (viewer, robot, problem, pathId, stepsize, filename)
 Export object positions for a path. More...
 

Function Documentation

◆ exportPath()

def gepetto.blender.exportmotion.exportPath (   viewer,
  robot,
  problem,
  pathId,
  stepsize,
  filename 
)

Export object positions for a path.

Parameters
robotthe considered robot,
problemthe problem associated with the path computed for the robot
stepsizeincrement along the path
pathIdif of the considered path
filenamename of the output file where to save the output

◆ exportState()

def gepetto.blender.exportmotion.exportState (   viewer,
  robot,
  configuration,
  outData 
)

Export object position for a given robot configuration.

Parameters
robotthe considered robot,
configurationcurrent robot configuration
outDataarray containing each object position, indexed first by object then by frame

◆ exportStates()

def gepetto.blender.exportmotion.exportStates (   viewer,
  robot,
  configurations,
  filename 
)

Export object positions for a list of robot configurations.

Parameters
robotthe considered robot,
configurationslist of configurations to consider
filenamename of the output file where to save the output

◆ writeDataToFile()

def gepetto.blender.exportmotion.writeDataToFile (   robot,
  outData,
  filename 
)

Export object position for a given robot configuration.

Parameters
outDatadata computed by the exportState calls
filenamename of the output file where to save the output