Skip to content

Instantly share code, notes, and snippets.

View takanotaiga's full-sized avatar

Taiga takanotaiga

View GitHub Profile
@takanotaiga
takanotaiga / Hello.SIM.py
Created December 4, 2023 14:28
Hello.SIM
import rclpy
from rclpy.node import Node
from std_msgs.msg import Float32
class MinimalPublisher(Node):
def __init__(self):
super().__init__('minimal_publisher')
! frequency_in_Hz input_voltage output_voltage
10 30 200
20 40 210
30 50 220
40 50.5 230
50 51 240
70 51.5 245
100 52 250
200 52.5 251
300 53 252
@takanotaiga
takanotaiga / zed-udev.sh
Created October 21, 2023 10:54
Set zed udev
wget -q https://download.stereolabs.com/zedsdk/3.5/jp44/jetsons -O zed_installer.run
bash ./zed_installer.run --tar -x './99-slabs.rules' > /dev/null 2>&1
sudo mv "./99-slabs.rules" "/etc/udev/rules.d/"
sudo chmod 777 "/etc/udev/rules.d/99-slabs.rules"
sudo udevadm control --reload-rules && sudo udevadm trigger
@takanotaiga
takanotaiga / gm6020.cpp
Last active September 7, 2023 15:32
mbed with gm6020
/*
* Copyright (c) 2017-2020 Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*/
#include "InterfaceCAN.h"
#include "PinNames.h"
#include <cstdint>
#if !DEVICE_CAN
#error [NOT_SUPPORTED] CAN not supported for this target