Concept
Decision Rule
ROBOTICS AND ARTIFICIAL INTELLIGENCE / A Simple Obstacle-Avoidance Algorithm
"The following Python example illustrates a basic decision rule. The distance value is assumed to come from a working sensor driver.\n\ndef choose_action(distance_cm):\n\nif distance_cm < 20:\n\nreturn \"STOP\"\n\nelse:\n\nreturn \"MOVE_FORWARD\"\n\ndistance = 15\n\naction = choose_action(distance)\n\nprint(action)\n\nExpected output: STOP"
Related Ideas
- Rules ActionsROBOTICS AND ARTIFICIAL INTELLIGENCE · Rule-Based AI
- Robot ResponseROBOTICS AND ARTIFICIAL INTELLIGENCE · System Architecture
- Distance MeasurementROBOTICS AND ARTIFICIAL INTELLIGENCE · System Architecture
- Intelligent ModelROBOTICS AND ARTIFICIAL INTELLIGENCE · 1.3 Robotics vs. Artificial Intelligence
- Intelligent SystemsROBOTICS AND ARTIFICIAL INTELLIGENCE · 1.2 What Is Artificial Intelligence?
- Robot GoalROBOTICS AND ARTIFICIAL INTELLIGENCE · Project: Obstacle-Avoiding Mobile Robot
- Reasoning SearchROBOTICS AND ARTIFICIAL INTELLIGENCE · Main Areas of AI
- AI AgentROBOTICS AND ARTIFICIAL INTELLIGENCE · AI Agents