Robot commands

asked 2017-09-26 01:41:35 -0500

nachatad gravatar image

I have done the tutorial "Learning URDF Step by Step" ( ), and now I want to move this robot with a robot commands for example (see below) not with the DiffDriveController (cmd). Example for Robot commands: .PROGRAM test() SPEED 300 MMPS ALWAYS ACCEL 50, 50 APPRO pos1, 80 BREAK DELAY 1 MOVE pos1 BREAK MOVES pos2 BREAK MOVES pos3 BREAK MOVES pos4 BREAK APPROS pos4, 20 BREAK DELAY 1 MOVE pos5 BREAK DECOMPOSE f[] = pos6 MOVE TRANS (f[0],f[1]+44,f[2]+30,f[3],f[4],f[5]) BREAK FOR i = 1 TO 6 MOVE pos7 BREAK MOVES pos8 MOVES pos9 BREAK END MOVE TRANS (f[0],f[1]+44,f[2]+30,f[3],f[4],f[5]) BREAK APPRO pos1, 80 BREAK

edit retag flag offensive close merge delete


Which "language" is this code you have pasted?

Can you format the code?

def test():
  print 'This is a formatted code?'

Ruben Alves gravatar image Ruben Alves  ( 2017-09-29 15:00:51 -0500 )edit