Skip to content

Instantly share code, notes, and snippets.

View Meltwin's full-sized avatar
🏠
Working from home

G Côte Meltwin

🏠
Working from home
View GitHub Profile
@Meltwin
Meltwin / Noetic-Ubuntu22.04.md
Last active June 18, 2024 13:29
Installing ROS1 Noetic on Ubuntu 22.04

I made a repository where you can create issues if you have any problem during manual installation of ROS1. It will hopefully help people to find their problem more quickly. If you have any problem with the steps below, please:

  1. Check if someone else had the same problem below this gist,
  2. Create an issue on this repository otherwise.

@Meltwin
Meltwin / change_cpp.py
Created May 4, 2023 14:41
Change all the CMakeLists.txt policy regarding the C++ standard to use C++17
import os
from colorama import Fore, Style
WANTED_WIDTH = 100
DISPLAY_WIDTH = min(WANTED_WIDTH, os.get_terminal_size().columns - 2)
print("┏" + "".center(DISPLAY_WIDTH, "━") + "┓")
print(f"┃{Fore.RED}" + "CMakeLists to C++17 Utils".center(DISPLAY_WIDTH, " ") + f"{Style.RESET_ALL}┃")
print(f"┃{Style.BRIGHT+ Fore.BLACK}" + "Meltwin - 2023".center(DISPLAY_WIDTH, " ") + f"{Style.RESET_ALL}┃")
print("┗" + "".center(DISPLAY_WIDTH, "━") + "┛")
print()
bundler:
arch:
- ruby-bundler
debian:
- bundler
fedora:
- rubygem-bundler
gentoo:
- dev-ruby/bundler
mint:
adafruit-ads1x15-pip:
debian:
pip:
packages:
- Adafruit-ADS1x15
mint:
pip:
packages:
- Adafruit-ADS1x15
ubuntu:
@Meltwin
Meltwin / CMakeLists.txt
Created March 21, 2023 19:56
Complete template for CMakeLists for ROS1 / ROS2 packages
cmake_minimum_required(VERSION 3.5)
project(template_prj VERSION 0.0.1)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic -std=c++17)
endif()
ace:
arch:
- ace
debian:
- libace-dev
gentoo:
- dev-libs/ace
mint:
- libace-dev
nixos:
@Meltwin
Meltwin / Baxter topics.md
Created January 6, 2023 15:42
Baxter light topics

Navigators Lights

Managing navigators lights (same topic as the sdk):

/robot/digital_io/command

Reading navigators lights states:

<?xml version="1.0" encoding="UTF-8" ?>
<CycloneDDS xmlns="https://cdds.io/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://cdds.io/config https://raw.githubusercontent.com/eclipse-cyclonedds/cyclonedds/master/etc/cyclonedds.xsd">
<Domain id="any">
<General>
<NetworkInterfaceAddress>auto</NetworkInterfaceAddress>
<AllowMulticast>false</AllowMulticast>
</General>
<Discovery>
<ParticipantIndex>auto</ParticipantIndex>
<Peers>
############################################################
# +------------------------------------------------------+ #
# | Notes | #
# +------------------------------------------------------+ #
############################################################
# This is the config file for EssentialsX.
# This config was generated for version 2.18.0.0.
# If you want to use special characters in this document, such as accented letters, you MUST save the file as UTF-8, not ANSI.
[21:23:54] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', name='PROD'
[21:23:55] [main/INFO]: Reloading ResourceManager: Default, bukkit
[21:23:55] [Server-Worker-3/INFO]: Loaded 7 recipes
[21:23:56] [Server thread/INFO]: Starting minecraft server version 1.16.1
[21:23:56] [Server thread/INFO]: Loading properties
[21:23:57] [Server thread/INFO]: This server is running Paper version git-Paper-108 (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT)
[21:23:57] [Server thread/INFO]: Debug logging is disabled
[21:23:57] [Server thread/INFO]: Server Ping Player Sample Count: 12
[21:23:57] [Server thread/INFO]: Using 4 threads for Netty based IO
[21:23:57] [Server thread/INFO]: Default game type: SURVIVAL