Advertisement
Ostu

Untitled

Jun 1st, 2021
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.31 KB | None | 0 0
  1. TIME_STEP = 64;
  2.  
  3. % get and enable devices, e.g.:
  4. %  camera = wb_robot_get_device('camera');
  5. %  wb_camera_enable(camera, TIME_STEP);
  6.  
  7. while wb_robot_step(TIME_STEP) ~= -1
  8.  
  9.   % read the sensors, e.g.:
  10.   %  rgb = wb_camera_get_image(camera);
  11.  
  12.   drawnow;
  13.  
  14.   wb_console_print( 'abcd', WB_STDOUT );
  15.  
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement