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
| import asyncio | |
| from pymavlink import mavutil | |
| PORT = 6666 | |
| CONNECTION_STRING = f'udpout:127.0.0.1:{PORT}' | |
| CONNECTIONS = {} | |
| def get_mavlink_connection(system_id: int, component_id: int): | |
| def create(system_id: int, component_id: int): | |
| return mavutil.mavlink_connection( |
Long and love-rate (more rate than love) relationship, take mostly of this review with a grant of salt.
ROS (started in 2010) have some great tools visualize topics, send and debug messages, check frequencies, and much more. It's also possible to use more advanced tools and solutions like: rviz, gmapping, rtabmap, stereo_image_proc and the list goes on. With ROS, it's possible to take advantage of all drivers that exist for different pieces of hardware. Keep in mind that this is possible, but not easy, usually the drivers need specific configuration, custom settings and may give as output really complex data that needs to be processed or analyzed by another program.
ROS uses [catkin](https://github.com
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
| import time | |
| from functools import wraps | |
| from typing import Any, Callable, Dict | |
| def temporary_cache(timeout_seconds: float = 10) -> Callable[[Callable[[Any], Any]], Any]: | |
| """Decorator that creates a cache for specific inputs with a configured timeout in seconds. | |
| Args: | |
| timeout_seconds (float, optional): Timeout to be used for cache invalidation. Defaults to 10. |
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
| <template> | |
| <span class="example">{{ msg }} - {{ potatoFunction() }}</span> | |
| </template> | |
| <script> | |
| export default { | |
| data () { | |
| return { | |
| msg: 'elefante!', | |
| color: 'red', | |
| } |
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
| import sys | |
| import gi | |
| sys.path.insert(0, "/usr/local/lib/python3.8/dist-packages") | |
| print(sys.path) | |
| #gi.require_version('Gst', '1.0') | |
| from gi.repository import Gst, GstRtspServer, GObject | |
| loop = GObject.MainLoop() |
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
| echo "potato, this's simple.sh!" | |
| echo "Yes, 'it' is!" |
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
| { | |
| "vehicles": [ | |
| { | |
| "id": 1, | |
| "components": [ | |
| { | |
| "id": 1, | |
| "messages": { | |
| "RANGEFINDER": { | |
| "type": "RANGEFINDER", |
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
| // https://steamcommunity.com/app/648800/discussions/0/1694922526906474288/ | |
| // https://www.saveeditonline.com/ | |
| Arrow_Stone - 186 - 0xba | |
| Bow - 185 - 0xb9 |
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
| #include <cstdint> | |
| #include <cstdio> | |
| namespace version_helper { | |
| /** | |
| * @brief Create the header sequence with checksum based in a string | |
| * | |
| * @tparam Type: Desired type of header | |
| * @tparam N: Size of string | |
| * @return Type: Header sequence created with checksum |