This file contains 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
any_node: | |
ubuntu: [ros-noetic-any-node] | |
any_node_example: | |
ubuntu: [ros-noetic-any-node-example] | |
any_worker: | |
ubuntu: [ros-noetic-any-worker] | |
message_logger: | |
ubuntu: [ros-noetic-message-logger] | |
param_io: | |
ubuntu: [ros-noetic-param-io] |
This file contains 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
def calculate_checksum(record): | |
total = sum(record) | |
checksum = ((~total + 1) & 0xFF) | |
return checksum | |
def verify_and_parse_record(line): | |
line = line.strip()[1:] | |
byte_count = int(line[0:2], 16) | |
address = int(line[2:6], 16) | |
record_type = int(line[6:8], 16) |
This file contains 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
cmake_minimum_required(VERSION 3.24) | |
project(lalala C CXX ASM) | |
set(CMAKE_C_COMPILER arm-none-eabi-gcc) | |
set(CMAKE_CXX_COMPILER arm-none-eabi-g++) | |
set(CMAKE_ASM_COMPILER arm-none-eabi-gcc) | |
set(CMAKE_AR arm-none-eabi-ar) | |
set(CMAKE_OBJCOPY arm-none-eabi-objcopy) | |
set(CMAKE_OBJDUMP arm-none-eabi-objdump) | |
set(SIZE arm-none-eabi-size) |
This file contains 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
# The ANYbotics style guide is based on google: https://anybotics.github.io/styleguide/cppguide.html | |
BasedOnStyle: Google | |
# Maximum line with is 140 characters (default: 80) | |
ColumnLimit: 140 | |
# Indent of two spaces, no tabs. | |
IndentWidth: 2 | |
# Always attach braces to surrounding context. | |
BreakBeforeBraces: Attach | |
# Force pointer alignment with the type (left). | |
DerivePointerAlignment: false |
This file contains 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
// | |
// Created by qiayuan on 2022/7/24. | |
// | |
#include "cbf_navigation/trajectories_publisher.h" | |
#include <ocs2_core/Types.h> | |
#include <ocs2_core/misc/LoadData.h> | |
#include <angles/angles.h> |
This file contains 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 cv2 as cv | |
class ImageCropper: | |
def __init__(self, background, candidate, visualization=None): | |
self.ref_point = [] | |
self.background = background | |
self.candidate = candidate | |
self.select = self.candidate.copy() | |
self.final = self.background.copy() |