2019年,我们参加了浙江大学**控制杯机器人设计大赛,这是我们在比赛期间的代码。
In 2019, we participated in the Zhejiang University Central Control Cup Robot Design Competition, this is our code source during the game.
超市机器人挑战:创建一个机器人并使其成为超市组织者。在比赛期间,机器人将根据随机的商品清单,在12分钟内完成12个指定商品的“补货”操作,从场地的“起始区域”开始。机器人需要在仓库的平台上获取货物并将其放置在指定货架的空货窗口中,并为每件正确的货物获得5分。如果您放错了架子或将其放入非空的货物窗口,您将扣除5分。获胜者是根据机器人正确放置在货物窗口中的物品的总分来确定的。
Supermarket Robot Challenge: Create a robot and make it a supermarket organizer. During the competition, the robot will complete the “replenishment” operation of 12 specified goods within 12 minutes according to the random list of goods, starting from the “starting area” of the venue. The robot needs to obtain the goods on the platform of the warehouse and Place it in the empty cargo window of the designated shelf, and get 5 points for each correct piece of goods. If you put the wrong shelf or put it into a non-empty cargo window, you will deduct 5 points. The winner is determined based on the total score of the items that the robot correctly placed in the cargo window.
1.手臂:由Raspberry Pi控制的伺服系统
2.汽车:车轮和红外传感器(由Mega 2560控制)
3.相机:用于检测物体的相机
4.其他对象:现实世界对象的ADT
- Arm: The servos controlled by the Raspberry Pi
- Car: The wheels and the infrared sensors (controlled by Mega 2560)
- Camera: the camera used to detect objects
- Other objects: ADTs of real world objects