Get body name from getBodyInfo.
This commit is contained in:
@@ -50,7 +50,7 @@ trailDuration = 15
|
||||
logId = p.startStateLogging(p.STATE_LOGGING_GENERIC_ROBOT,"LOG0001.txt",[0,1,2])
|
||||
|
||||
for i in xrange(5):
|
||||
print "Body %d's name is %s." % (i, p.getBodyName(i)[0])
|
||||
print "Body %d's name is %s." % (i, p.getBodyInfo(i)[1])
|
||||
|
||||
while 1:
|
||||
if (useRealTimeSimulation):
|
||||
|
||||
Reference in New Issue
Block a user