buzz_argos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
buzz_argos [2018/03/18 23:19] – [Debugging Buzz Programs] rootbuzz_argos [2018/03/18 23:24] – [Debugging Buzz Programs] root
Line 131: Line 131:
  
 == Writing Text on Top of a Robot == == Writing Text on Top of a Robot ==
 +
 +  * ''debug.print(message)''
 +    * prints a message on top of the robot, after the robot id
 +    * ''message'' can be a combination of text and variables, such as ''"x = ", x, " cm"''
  
 == Drawing the Trajectory of a Robot == == Drawing the Trajectory of a Robot ==
- 
-You can draw the trajectory of the robot as it moves. 
  
   * ''debug.trajectory.enable(maxpoints,r,g,b)''   * ''debug.trajectory.enable(maxpoints,r,g,b)''
     * enable trajectory tracking setting how many points should be stored and the drawing color     * enable trajectory tracking setting how many points should be stored and the drawing color
 +    * ''(r,g,b)'' is the drawing color of the trajectory (0-255 for each value)
   * ''debug.trajectory.enable(maxpoints)''   * ''debug.trajectory.enable(maxpoints)''
     * enable trajectory tracking setting how many points should be stored     * enable trajectory tracking setting how many points should be stored
   * ''debug.trajectory.enable(r,g,b)''   * ''debug.trajectory.enable(r,g,b)''
     * enable trajectory tracking keeping maxpoints' last value and setting the drawing color     * enable trajectory tracking keeping maxpoints' last value and setting the drawing color
 +    * ''(r,g,b)'' is the drawing color of the trajectory (0-255 for each value)
   * ''debug.trajectory.enable()''   * ''debug.trajectory.enable()''
     * enable trajectory tracking keeping maxpoints' last value (default is 30)     * enable trajectory tracking keeping maxpoints' last value (default is 30)
Line 154: Line 158:
     * draw a ray from the reference point of the robot to ''(x,y,z)''.     * draw a ray from the reference point of the robot to ''(x,y,z)''.
     * ''(x,y,z)'' is expressed wrt the robot reference frame     * ''(x,y,z)'' is expressed wrt the robot reference frame
 +    * ''(r,g,b)'' is the color of the vector (0-255 for each value)
   * ''debug.rays.add(r,g,b, x0,y0,z0, x1,y1,z1)''   * ''debug.rays.add(r,g,b, x0,y0,z0, x1,y1,z1)''
     * draw a ray from ''(x0,y0,z0)'' to ''(x1,y1,z1)''     * draw a ray from ''(x0,y0,z0)'' to ''(x1,y1,z1)''
     * ''(x0,y0,z0)'' and ''(x1,y1,z1)'' are expressed wrt the robot reference frame     * ''(x0,y0,z0)'' and ''(x1,y1,z1)'' are expressed wrt the robot reference frame
 +    * ''(r,g,b)'' is the color of the vector (0-255 for each value) 
 +  * debug.rays.clear() 
 +    * delete all the rays
  • buzz_argos.txt
  • Last modified: 2018/03/18 23:34
  • by root