Changes between Version 1 and Version 2 of ControlSystems/SoftwareTeam/Training/VirtualTraining/HelloRoboCode
- Timestamp:
- Aug 16, 2020, 11:27:24 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/VirtualTraining/HelloRoboCode
v1 v2 2 2 3 3 The real fun of !RoboCode is that it lets you build your own robot and program it in Java. Let's build a simple robot and battle it against one of the trainer bots: 4 [[Image(RobotEditor.jpg, align=right, 250px)]] 4 5 5 6 1. Launch !RoboCode and choose '''Robot->Source editor''' … … 11 12 1. Give your robot a name like '''RoboJojo''' - note that the name must start with an upper-case letter. 12 13 1. Create a package name for your robot. Packages are like teams of robots; you can create many robots and add all of them to your package. Give it a unique name that's easy to identify so when you are doing battles with teammates and in competitions, it's easy to identify your robots. For example: '''daa2537''' (your initials and team) 14 [[br]][[br]][[br]] 13 15 14 16 The editor starts with a pre-created super-simple robot that you can modify and extend. Let's use it as-is to see what it does. 15 17 [[Image(RobotCompile.jpg, align=right, 250px)]] 16 18 1. Save the robot: '''File->Save''' accept the default filename (e.g. RoboJojo.java) 17 19 1. Compile the robot '''Compiler->Compile''' and press OK when the compilation finishes.