parameters: (self,index,value)
docstring: Sets a single indexed joint to a position command
docstring_summary: Sets a single indexed joint to a position command
docstring_tokens: Sets a single indexed joint to a position command
function: def setJointPositionCommand(self,index,value):
          """Sets a single indexed joint to a position command"""
          #klampt can only do uniform position, velocity, or torque commands
          if 'qcmd' in self.retval:
              self.retval['qcmd'][index] = value
          elif 'dqcmd' in self.retval:
              self.retval['dqcmd'][index] = (value - self.inputs['qcmd'][index]) / self.inputs['dt']
              self.retval['tcmd']=self.inputs['dt']
          elif 'torquecmd' in self.retval:
              print("Cannot combine joint position commands with joint torque commands")
          else:
              #no joint commands set yet, set a position command
              self.retval['qcmd'] = self.inputs['qcmd']
              self.retval['qcmd'][index] = value
function_tokens: def setJointPositionCommand ( self , index , value ) : #klampt can only do uniform position, velocity, or torque commands if 'qcmd' in self . retval : self . retval [ 'qcmd' ] [ index ] = value elif 'dqcmd' in self . retval : self . retval [ 'dqcmd' ] [ index ] = ( value - self . inputs [ 'qcmd' ] [ index ] ) / self . inputs [ 'dt' ] self . retval [ 'tcmd' ] = self . inputs [ 'dt' ] elif 'torquecmd' in self . retval : print ( "Cannot combine joint position commands with joint torque commands" ) else : #no joint commands set yet, set a position command self . retval [ 'qcmd' ] = self . inputs [ 'qcmd' ] self . retval [ 'qcmd' ] [ index ] = value