When I run klampt_control ur5_with_robotiq85_sim.json, error happens in class OmniRobotInterface.
In klampt/control/robotinterfaceutils.py, in class RobotInterfaceEmulator, the method initialize will set self.jointData.commandedTorque to None in lines:
if tcmd is not None: j.commandedTorque = tcmd[i]
This will cause a problem when beginStep() is called again and self._updateStateFromEmulator('commandedTorque') is executed, which will raise an error on [None,...,None] value of commandedPosition.
I try to initialize the torque value to 0 and it works for this example.
Testing on branch 0.9
When I run
klampt_control ur5_with_robotiq85_sim.json
, error happens in classOmniRobotInterface
.In
klampt/control/robotinterfaceutils.py
, in classRobotInterfaceEmulator
, the methodinitialize
will setself.jointData.commandedTorque
toNone
in lines:if tcmd is not None: j.commandedTorque = tcmd[i]
This will cause a problem when
beginStep()
is called again andself._updateStateFromEmulator('commandedTorque')
is executed, which will raise an error on[None,...,None]
value ofcommandedPosition
.I try to initialize the torque value to 0 and it works for this example.