- Renamed 'Sensors' to 'Devices', to better reflect the abstraction (devices may have multiple sensors, ex: camera & IMU). Right now we are assuming a 1:1 relationship, but we want to future-proof.
- Extracted the state machine of the sensors (now devices) into a new abstraction
Lifecycleso it can be also shared with modules like recording, calibration, teleop. - Changed WebSocket communication to send messages to specific modules (by ID). This enables multiple instances of the same module (ex teleoperation)
- Now leader-follower teleoperation is a module on itself:
LeaderFollowerTeleop. It must be instantiated via config file (seeconfig_sample.yaml) - Now app state is handled per module to reduce CPU usage.
- Simplified Makefile for development (now
make frontandmake back) - Reorganized the backend folder structure: now all modules live inside the
modules/folder, all the devices insidedevices/folder. Renamed short-names to be more explicitsystem_info.cpp->system_info_module.cpp.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
| <title>Slides</title> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/reveal.css"> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/theme/white.css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <title>Visualizer boilerplate</title> | |
| </head> | |
| <body> | |
| <style> | |
| body { | |
| background-color: #303030; | |
| margin: 0; | |
| padding: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <link rel="shortcut icon" type="image/png" href="https://halite.io/favicon.ico"/> | |
| <title>Halite II Live Leaderboard</title> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css?family=Teko'); | |
| * { | |
| outline: none; | |
| margin: 0px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $image = imagecreatetruecolor(32, 64); | |
| $width = imagesx($image); | |
| $height = imagesy($image); | |
| imagealphablending($image, true); | |
| imagecolortransparent($image, imagecolorallocate($image, 0, 0, 0)); // Make transparent | |
| function hex2rgb($hex) { // http://bavotasan.com/2011/convert-hex-color-to-rgb-using-php/ | |
| $hex = str_replace("#", "", $hex); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * No database selected | |
| * Usage: | |
| $query = "SELECT 'testrow' FROM 'database_name'.'table'"; | |
| $result = DB::getInstance()->query($query); |