Coding Period - Week 2
In the weekly meet, we decided to start the project with the migration of follow line exercise. Follow line exercise consists of the most basic components.
Goals
- Creating a Exercise Base React based template
Accomplishment and Challenges
-
React Based Exercise Base Template [Task 1]
To get started with the migration of follow line exercise, I started with the refractoring of exercise_base.html which consisted of the main navigation bar. It consists of functionalities as follow -
First Toolbar -
- Connection - This Button connects/indicates the web server with the Robotics Academy Docker Image (RADI).
- Launch - This button consists of three states - launch, launching and ready.
- Button Group [ Documentation / Editor mode / Forum ] - This button group provides three functions - documentation, editor mode and visualization of exercise and forum to raise issues and doubts to other fellow developers.
Second Toolbar -
- Load File - To load a file in ace editor,
- Save file - To save the current code of Ace edtior,
- Load in Robot - To load the code in robot,
- Play - To play the visualization,
- Stop - To stop the visualization,
- View Sim - Opens Gazebo and helps in Simulation task,
- View Console - Opens Console,
- Teleoperate
- Brain frequency [Hz] - Number of iterations of the robot brain,
- GUI frequency [Hz] - speed of the Graphical User Interface code,
- SIM RTF [Gazebo simulator’s Real Time Factor] - It indicates how smoothly the simulation is running. The closer you are to 1, the better. For an instance, Consider an RTF = 0.3, it represents 1 wall clock second simulates only 300ms of simulated time.
Main challenges that I faced was how to connect all the react based code to Django templates style. To acheive that I consulted the mentors and asked for their advice.