1 of 24

Virtual Robotics

Fun Hour

July 17th, 2020

2 of 24

Host - Audrey He

3 of 24

Virtual Robotics Fun Hour

  • Every Friday at 7pm CDT, 4/17/2020 - 7/31/2020 (except 7/3/2020)
  • Hosted by Technicbots 8565 team members
  • Four modules
    • Online Resource
    • Builder Zone
    • CAD topics
    • RoboCode Virtual Battle (welcome submission of your robot code)
  • Mute yourself when not talking, ask questions in the zoom meeting chat window
  • Expect a reminder email (with Zoom meeting info) one day before event
  • Expect an email after event with the link to this slides
  • Any questions and suggestions of topics? please email: technicbots.team@gmail.com

4 of 24

EV3/CAD Virtual Summer Camp

  • Our annual EV3 Summer Camp is going virtual this year!
  • Focusing on the fundamentals of EV3 robots and CAD skills to prepare you for the new season during Pandemic
  • EV3: Weeknights (7/27-7/30) 7-10pm; Saturday (8/1) 9am-5pm
  • CAD: Sunday (8/2) 9am-4pm
  • EV3 sessions will be taught by TechnicBots (FTC 8565) with support from ACP FTC 18227 and ACP FLL 50661
  • CAD sessions will be taught by ACP FLL 40657
  • Register here by 7/25/2020
  • This is a fundraising event, all profits will go towards teaching teams' robotics fund of next season

5 of 24

Future Dates of Fun Hour Event

  • 7/24: Builder Zone topic: WeDo Set Demo
  • 7/31: Participant personal project showcase, Final Robocode Tournament

If you are interested in showcasing any of your projects on the last day of our Fun Hour event, you can register here by 7/24/2020

6 of 24

Online Resource

Audrey He

7 of 24

Free Code Camp

  • https://www.freecodecamp.org/
    • free with account creation
  • includes HTML, Python, JavaScript, and more

8 of 24

Beginner HTML Demo

9 of 24

Builder Zone

Walter/Lance

10 of 24

3D PPE Makers and Their Printers

Walter Stark Lance Pham

11 of 24

FRC Robot

Walter Stark, Plano Senior High School

Mechanical Captain of FRC Team 6171

Team member of FTC Team 7172

Slides

Lance Pham, Plano Senior High School

Team member of FRC Team 6171

FRC 6171

Chain Reaction Robotics

12 of 24

RoboCode Virtual Battle

Byron Li

13 of 24

Eclipse Check In & Developing Tips

  • We highly recommend you have Eclipse installed as it offers a much more streamlined coding experience. Instructions were sent out in the email and you can find them again here (same doc as install instructions last time)

https://robowiki.net/wiki/Robocode/Eclipse

  • Brief General Overview
  • Some quick general coding tips
    • Keep class name the same as your file name and make sure it is descriptive
    • Look through error messages to try and figure out problems in code. If you are stuck, try looking up the exact text of the error message online!
    • Make sure to have imported a library before you use it: more on that later

14 of 24

Targeting: Revenge

  • With four bots in the field on each tournament, it’s tricky to determine who you want to target!
  • Revenge targeting is a simple technique where you try to shoot the robot that shot you last
  • The idea is that if you take out the robots that are targeting you, you will take less damage

15 of 24

Storing the name

To fire at the robot who hit us last, we need to store its name in a variable

String RevengeTarget;

//This will store the name of the person who hit us last so we know who to shoot at

16 of 24

Getting the target

  • We want to update the value of RevengeTarget whenever we get hit
  • We can do this with the OnHitByBulletEvent()

public void onHitByBullet(HitByBulletEvent e) {

RevengeTarget = e.getName();

}

17 of 24

Shooting at the target

  • Now all we need to do is shoot when we see the robot with the same name as RevengeTarget
  • public void onScannedRobot(ScannedRobotEvent e) {

if(e.getName().equals(RevengeTarget)){

fire(3);

}

}

18 of 24

Sharing Robot Insights

  • We are all in this to learn about coding together, and even though it’s fun to get competitive in our tournaments, keep in mind our overall goal is still to teach everyone as much as we can.
  • With that in mind, the winner of each division’s tournament is expected to share some thoughts about their code and the thought that went into their robot (By submitting the code, you agree to show your code to others)
  • If you are confident in your robot, make sure to think about what you are going to say if you win.
  • Good luck everyone!

19 of 24

Virtual Robot Tournament #5

Division 1 (Qualification Round)

Robot Name

Coder Name

Robot Score

Robot Name

Coder Name

Robot Score

20 of 24

Virtual Robot Tournament #5

Division 2 (Qualification Round)

Robot Name

Coder Name

Robot Score

Robot Name

Coder Name

Robot Score

21 of 24

Submit Your RoboCode for Virtual Battle

  • Submission form: https://tinyurl.com/robocodeform
  • Results Doc: https://tinyurl.com/robocoderesults
  • Submission opens at Wednesday noon and closes at Friday noon
  • Name your robot with unique and short name
  • The battle schedule will be posted: https://tinyurl.com/robocodebattlebracket
  • Battles will be held in two divisions:
    • Division 1 (Novice): for people new to Java
    • Division 2 (Advanced): for already experienced coders
  • Division winners will share some thoughts about their coding process
  • Recommended prep: These links are very useful http://mark.random-article.com/weber/java/robocode/

https://www.ibm.com/developerworks/java/library/j-robotips/

22 of 24

Past Session Slides, Recordings and Docs

23 of 24

Q & A

After 8:00, you are free to leave

Feel free to ask questions in chat or with your mic!

24 of 24

Questions/Suggestions

technicbots.team@gmail.com