Skip to content

Instantly share code, notes, and snippets.

View IamPhytan's full-sized avatar
🦊
GitLabing / Pythoning / Rusting

Damien LaRocque IamPhytan

🦊
GitLabing / Pythoning / Rusting
View GitHub Profile
@IamPhytan
IamPhytan / diffbot_system.cpp
Created October 26, 2024 22:33 — forked from renderedSafe/diffbot_system.cpp
ROS2 Control Demos diffbot hardware interface publisher. Useful for micro-ROS hardware control.
// Copyright 2021 ros2_control Development Team
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
import json
import logging
import threading
import fibre
from fibre.utils import Logger
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
fibre_logger = Logger(verbose=logger.getEffectiveLevel() == logging.DEBUG)