Skip to content
Snippets Groups Projects
Commit f63f5c83 authored by Maxime REIS's avatar Maxime REIS
Browse files

Adding option to specify the robot model in the replay.py script (-R option)....

Adding option to specify the robot model in the replay.py script (-R option). Now works with HRP2 and Romeo models.
parent 0ff02ec1
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@ parser.add_option("-s", dest="server", help="Name of server (CORBA or XML-RPC).
parser.add_option("-r", dest="size", help="Robot size if file verification is needed.", default="-1", type=int)
parser.add_option("-n", dest="iter", help="Number of iteration to play.", default="-1", type=int)
parser.add_option("-z", dest="decimate", help="percentage of frame to use, should be <1", default="1", type=float)
parser.add_option("-R", dest="robotName", help="Robot on which the simulation is replayed. Default is %default", default="hrp2")
(options, args) = parser.parse_args()
parser.print_help()
print '\n -------------------------------------------------------------------------'
......@@ -82,8 +83,8 @@ def inc():
robotTime += 1
if robotTime%1000==0: print "\nTime: " + str(robotTime)
# Add 10 values for the hand DOFs
pos_angles += 10*[0.0]
# Add 10 values for the hand DOFs for HRP2
if options.robotName=="hrp2": pos_angles += 10*[0.0]
# Plot only if the values are not 'NaN'
nbImage+=decimate
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment