Skip to content

Instantly share code, notes, and snippets.

View Maik93's full-sized avatar
🌮

Michael Mugnai Maik93

🌮
View GitHub Profile
@Maik93
Maik93 / docker-compose.yaml
Created November 5, 2024 13:31
Docker Compose with graphics and Nvidia support
version: '3.8' # Specifies the version of the Docker Compose file format
services:
ros: # Service name
#image: osrf/ros:humble-desktop # Specifies the Docker image to use for this service
image: ros-noetic-full-gpu # Specifies the Docker image to use for this service
container_name: ros # Sets the container name to "ros"
network_mode: host # Uses the host's networking stack (container shares the host's network)
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # Mounts the X11 Unix socket for GUI applications
@Maik93
Maik93 / base_plotly.py
Created March 8, 2024 09:45
Basic Plotly usage for lines and scatters, that can be both interactively shown or stored
import plotly as pl
import plotly.graph_objects as pl_go
class PlotlyUtils:
def __init__(self):
self.figure = pl.graph_objs.Figure()
def insert_line(self, data, **kwargs):
obj = pl_go.Scatter(data, mode='lines+markers', *kwargs)
@Maik93
Maik93 / r200_nodelet_pointcloud_xyzrgb.launch
Last active November 29, 2018 15:43
ROS launcher for Intel Relalsense R200 that uses depth_image_proc for the RGB point cloud composition.
<!-- Sample launch file for using RealSense R200 camera with default configurations -->
<launch>
<arg name="camera" default="camera" />
<arg name="camera_type" default="R200" /> <!-- Type of camera -->
<arg name="serial_no" default="" />
<arg name="usb_port_id" default="" /> <!-- USB "Bus#-Port#" -->
<arg name="manager" default="nodelet_manager" />
<!-- These 'arg' tags are just place-holders for passing values from test files.
The recommended way is to pass the values directly into the 'param' tags. -->