Skip to content

Instantly share code, notes, and snippets.

View knmcguire's full-sized avatar

Kimberly N. McGuire knmcguire

View GitHub Profile
@knmcguire
knmcguire / lighthouse_concentric_circles.py
Created March 18, 2019 13:37
Demo that makes the crazyflie with the LED-ring fly 3 concentric circles in the colors: red, blue and green.
#!/usr/bin/env python3
#Demo that makes the crazyflie fly 3 concentric circles in the colors: red, blue and green.
import sys
import time
import math
import numpy
import cflib.crtp
@knmcguire
knmcguire / lighthouse_trace_logo.py
Created March 18, 2019 13:46
Demo to make the crazyflie with the LED ring to fly the logo of Bitcraze
#!/usr/bin/env python3
# Demo to make the crazyflie with the LED ring to fly the logo of bitcraze
import sys
import time
import math
import numpy
import cflib.crtp
from cflib.crazyflie import Crazyflie
import math
import time
import cflib.crtp
from cflib.crazyflie.swarm import CachedCfFactory
from cflib.crazyflie.swarm import Swarm
# Change uris according to your setup
URI0 = 'radio://0/70/2M/E7E7E7E7E7'
import logging
import sys
import time
import cflib.crtp
from cflib.crazyflie import Crazyflie
from cflib.crazyflie.syncCrazyflie import SyncCrazyflie
URI = 'radio://0/80/2M'
import logging
import sys
import time
import cflib.crtp
from cflib.crazyflie import Crazyflie
from cflib.crazyflie.syncCrazyflie import SyncCrazyflie
@knmcguire
knmcguire / Makefile
Created November 20, 2020 11:48
lighthouse_app
APP=1
APP_STACKSIZE=300
CFLAGS += -DDISABLE_LIGHTHOUSE_DRIVER=0
CFLAGS += -DLIGHTHOUSE_FORCE_TYPE=2
PROJ_OBJ += app_lighthouse.o
CRAZYFLIE_BASE=../.. #fill in with your crazyflie base code
include $(CRAZYFLIE_BASE)/Makefile
@knmcguire
knmcguire / kitchen_crazyflie_swarm.py
Created June 4, 2021 12:39
kitchen_crazyflie_swarm
# -*- coding: utf-8 -*-
#
# || ____ _ __
# +------+ / __ )(_) /_______________ _____ ___
# | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
# +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
# || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
#
# Copyright (C) 2019 Bitcraze AB
#
@knmcguire
knmcguire / swarm_mapping_launch.py
Created July 10, 2024 08:47
A ROS 2 launch file that works with the Crazyswarm2 ROS 2 crazyflie server and the ROS 2 merge mapping example
import os
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch_ros.actions import Node
import yaml
def generate_launch_description():
@knmcguire
knmcguire / preinstall_setup_windowsbinary.bat
Last active April 30, 2025 07:23
A draft for a preinstall script for release install of windows ROS2 distro
@echo off
setlocal enabledelayedexpansion
:: Author: Kimberly McGuire co-authored with Co-pilot
:: Instructions:
:: 1. Place this file inside the zipped release ROS2 distro
:: 2. Navigate to inside the ROS2 binary folder
:: 3. In a command prompt, do 'call preinstall_setup_windowsbinary.bat' and wait until the script is done
"""
Author: Kimberly McGuire co-authored with Copilot
Instructions:
1. Place this file inside the zipped release ROS2 distro
2. Navigate to inside the ROS2 binary folder
3. In a command prompt, activate your Pixi (Conda) environment
4. Run: python preinstall_setup_windows.py and wait until the script is done
"""