Skip to content

Instantly share code, notes, and snippets.

View dhood's full-sized avatar

dhood

View GitHub Profile
@dhood
dhood / external_contribution_repos.txt
Created February 23, 2018 22:42
external contribution repos file
repositories:
ament/ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: master
ament/ament_index:
type: git
url: https://github.com/ament/ament_index.git
version: master
ament/ament_lint:
@dhood
dhood / external_contribution_repos.txt
Created December 20, 2017 00:20
external contribution repos file
repositories:
ament/ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: master
ament/ament_index:
type: git
url: https://github.com/ament/ament_index.git
version: master
ament/ament_lint:
@dhood
dhood / external_contribution_repos.txt
Created December 20, 2017 00:13
external contribution repos file
repositories:
ament/ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: master
ament/ament_index:
type: git
url: https://github.com/ament/ament_index.git
version: master
ament/ament_lint:
@dhood
dhood / ifttt_button.py
Created August 26, 2017 18:33
push_ifttt_event
import requests
import time
import serial
special_link = "https://maker.ifttt.com/trigger/kevin/with/key/o2jagJdkxIUnPkL4mosDT"
time_of_last_event = 0;
def triggerEvent(switchID):
print('calling trigger event')
# How long has it been since the switch was last pressed?
global time_of_last_event
@dhood
dhood / tag1.repos
Created September 15, 2016 23:19
vcs update tag test
repositories:
ament/ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: release-alpha6

Maintaining a Source Checkout

If you have installed ROS 2 from source, there may have been changes made to the source code since the time that you checked it out. To keep your source checkout up to date, you will have to periodically update your ros2.repos file, download the latest sources, and rebuild your workspace.

Update your repository list

Each ROS 2 release includes a ros2.repos file that contains the list of repositories and their version for that release. To download the repository list from the latest ROS 2 release, run:

@[if os is not 'windows']@

# Maintaining a Source Checkout
If you have installed ROS 2 from source, there may have been changes made to the source code since the time that you checked it out.
To keep your source checkout up to date, you will have to periodically update your `ros2.repos` file, download the latest sources, and rebuild your workspace.
## Update your `ros2.repos` file
To download the `ros2.repos` file from the latest ROS 2 release, run:
```
cd ~/ros2_ws
mv -i ros2.repos ros2.repos.old
wget https://raw.githubusercontent.com/ros2/ros2/release-latest/ros2.repos
import pexpect
import sys
if len(sys.argv) < 3:
raise Exception('Path to installer and/or install directory not received')
installer_path = sys.argv[1]
install_directory = sys.argv[2]
child = pexpect.spawn(installer_path + ' --mode text', encoding='utf8', logfile=sys.stdout)
repositories:
ament/ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: master
ament/ament_index:
type: git
url: https://github.com/ament/ament_index.git
version: master
ament/ament_lint:
20:04:00 Process package 'rclcpp_examples' with context:
20:04:00 --------------------------------------------------------------------------------
20:04:00 source_space => /home/rosbuild/ci_scripts/ws/src/ros2/examples/rclcpp_examples
20:04:00 build_space => /home/rosbuild/ci_scripts/ws/build/rclcpp_examples
20:04:00 install_space => /home/rosbuild/ci_scripts/ws/install/rclcpp_examples
20:04:00 make_flags => -j1
20:04:00 build_tests => True
20:04:00 --------------------------------------------------------------------------------
20:04:00
20:04:00 Running cmake because arguments have changed.