parameters: (self,x0)
docstring: Resets the motion generator to the start position x0.
docstring_summary: Resets the motion generator to the start position x0.
docstring_tokens: Resets the motion generator to the start position x0 .
function: def reset(self,x0):
          """Resets the motion generator to the start position x0."""
          if len(x0) != len(self.amax):
              raise ValueError("Invalid length of the configuration")
          self.x = x0
          self.v = [0]*len(x0)
          self.times = [[0] for v in x0]
          self.milestones = [[v] for v in x0]
          self.dmilestones = [[0] for v in x0]
          self.trajTime = 0
function_tokens: def reset ( self , x0 ) : if len ( x0 ) != len ( self . amax ) : raise ValueError ( "Invalid length of the configuration" ) self . x = x0 self . v = [ 0 ] * len ( x0 ) self . times = [ [ 0 ] for v in x0 ] self . milestones = [ [ v ] for v in x0 ] self . dmilestones = [ [ 0 ] for v in x0 ] self . trajTime = 0