Skip to content

Instantly share code, notes, and snippets.

View ljaniec's full-sized avatar
🎯
Focusing

ljaniec ljaniec

🎯
Focusing
View GitHub Profile
@Victor4X
Victor4X / Dockerfile
Last active May 30, 2023 19:39
Turtlebot3 Dockerfile Humble
# https://ros.org/reps/rep-2001.html#simulation
FROM osrf/ros:humble-simulation
# https://answers.ros.org/question/411908/running-humble-on-turtlebot3/
# Install colcon_cd
RUN apt update
RUN apt install -y python3-colcon-common-extensions
# Set up colcon_cd for future bash sessions
@guru-florida
guru-florida / model-training.py
Created March 7, 2021 05:43
Model Training URDF parameters in Ros2 with Gazebo
#!/usr/bin/env python3
#
# model-training.py
# Use HyperOpt and Gazebo to train parameters of your robot. Perfoms a number
# of episodic simulations and optimizing the inputs to a xacro-enabled urdf file.
#
# Copyright 2020 FlyingEinstein.com
# Author: Colin F. MacKenzie
#
# Features:
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active March 22, 2026 07:51
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
#!/usr/bin/env python
from __future__ import print_function
import rospy
from concurrent.futures import ThreadPoolExecutor
class AsyncServiceProxy(object):
"""Asynchronous ROS service proxy
@ruffsl
ruffsl / Dockerfile
Last active April 7, 2025 09:49
Small ROS Network Example
FROM ros:indigo-ros-base
# install ros tutorials packages
RUN apt-get update && apt-get install -y \
ros-indigo-ros-tutorials \
ros-indigo-common-tutorials \
&& rm -rf /var/lib/apt/lists/
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@gitaarik
gitaarik / git_submodules.md
Last active March 23, 2026 03:02
Git Submodules basic explanation

Git Submodules - Basic Explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a sub-repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.