CSCI 1106 Introduction to Robotics

Event handlers check sensors eg proximity prox sensors

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: d! ! onevent button.right! motor.left.target = speed! motor.right.target = -speed! Key Idea: Actuators are controlled by sebng variables that represent them Sensors and Actuators in Aseba •  Key Idea: All sensors and actuators are accessed via predefined variables, e.g., –  to control motors, assign values to motor variables motor.left.target = 100! motor.right.target = 100! –  to check if an object is close, read proximity variable if prox.horizontal[2] > 1000 then! ...! end! •  Where are all the predefined variables listed? •  When do we check variables? 7 2/22/2014 Aseba Studio heps://aseba.wikidot.com/en:thym...
View Full Document

This document was uploaded on 03/27/2014 for the course CSCI 1106 at Dalhousie.

Ask a homework question - tutors are online