Skip to content

Instantly share code, notes, and snippets.

View doudou's full-sized avatar

Sylvain Joyeux doudou

View GitHub Profile
@doudou
doudou / manual_control.rb
Created April 6, 2016 11:57
How to get a manual control definition take over any other form of control in Syskit
module Tasks
# Make sure that no control layer but ManualControl are running
class MaintainManualControl < Roby::Task
terminates
poll do
control_tasks = plan.find_tasks(Services::Control).not_finished
ready = true
control_tasks.each do |t|
next if t.fullfills?(Compositions::ManualControl)
- tools/roby:
branch: roby3-async
- tools/syskit:
branch: syskit2-async
- drivers/transformer:
branch: roby3-async
- tools/metaruby:
branch: syskit2-async
- tools/roby:
branch: roby3
- tools/syskit:
branch: syskit2
- drivers/transformer:
branch: roby3
- pkg_set:github:/orocos-toolchain/autoproj.git:
branch: castxml
- pkg_set:github:/rock-core/package_set.git:
branch: castxml
- typelib:
branch: castxml
#include <fstream>
#include <vector>
#include <stdexcept>
#include <iostream>
#include <boost/lexical_cast.hpp>
using namespace std;
using boost::lexical_cast;
@doudou
doudou / 80-syskit_new_naming_scheme.yml
Created March 25, 2015 14:28
Syskit's new naming scheme
- tools/roby:
branch: syskit_new_naming_scheme
- tools/syskit:
branch: syskit_new_naming_scheme
- base/doc:
branch: syskit_new_naming_scheme
- bundles/rock:
branch: syskit_new_naming_scheme
@doudou
doudou / task_context_base.rb
Created September 16, 2014 11:48
Fix for non-pull connection for state reading
def on_state_change(&block)
port('state').reader(:init => true, :pull => true, :type => buffer, :size => 100).on_data do |state|
block.call(obj.state_symbols[state])
end
end
@doudou
doudou / overrides.yml
Created July 14, 2014 10:51
overrides to try the rock webapp
overrides:
orogen:
branch: models_to_h
tools/orocos.rb:
branch: webapp
typelib:
branch: to_simple_value
@doudou
doudou / overrides.yml
Created June 12, 2014 14:01
Overrides for using Rock's orogen_loaders branch
overrides:
- orogen:
branch: orogen_loaders
- tools/orocos.rb:
branch: orogen_loaders
- tools/syskit:
branch: orogen_loaders
- base/scripts:
branch: orogen_loaders
- gui/vizkit:
@doudou
doudou / export_dir_to_gh_pages.sh
Created May 11, 2009 08:16
This script takes a directory and creates a new commit in the gh-pages branch that represent the state of that directoy. This is used in my own project Roby to generate the documentation using webgen and rdoc, and automatically (and cheaply) update the gh
PAGES_BRANCH=gh-pages
DOC_DIR=doc/html
set -e
git reset -q HEAD
# Create the tree object
git add -f $DOC_DIR
tree=$(git write-tree --prefix=$DOC_DIR)