Skip to content

Instantly share code, notes, and snippets.

View david-german-tri's full-sized avatar

David German david-german-tri

  • Toyota Research Institute
View GitHub Profile
https://drake-jenkins.csail.mit.edu/view/Continuous%20Production/job/linux-gcc-ninja-continuous-release/1710/
https://drake-jenkins.csail.mit.edu/view/Continuous%20Production/job/linux-clang-bazel-continuous-release/426/
https://drake-jenkins.csail.mit.edu/view/Nightly%20Production/job/linux-xenial-gcc-ninja-nightly-release/71/
https://drake-jenkins.csail.mit.edu/view/Nightly%20Production/job/linux-gcc-nightly-matlab-debug/228/
@david-german-tri
david-german-tri / gist:070828f2fd3ee21578caffdcc4aaa734
Created March 16, 2017 15:39
Bazel 0.4.5 - dependency cycle
:~/drake/drake-distro$ bazel query "deps(//tools:apple_toolchain_deps)"
.
//tools:apple_toolchain_deps
//tools:universal_toolchain_deps
//tools:ccache.txt
//tools:ccache_is_bad
@bazel_tools//tools/genrule:genrule-setup.sh
//tools/defaults:jdk
@bazel_tools//tools/jdk:jdk
@local_jdk//:jdk
@david-german-tri
david-german-tri / gist:9a988d9b0b3916a5bf40b8f1a6bbad6e
Created March 16, 2017 15:38
Bazel 0.4.4 - no dependency cycle
~/drake/drake-distro$ bazel query "deps(//tools:apple_toolchain_deps)"
.
//tools:apple_toolchain_deps
//tools:universal_toolchain_deps
//tools:ccache.txt
//tools:ccache_is_bad
@bazel_tools//tools/genrule:genrule-setup.sh
//tools:complain_about_ccache
//tools:complain_about_ccache.sh
//tools:osx_cc_wrapper
#include "drake/automotive/gen/driving_command_translator.h"
#include "drake/automotive/simple_car.h"
#include "drake/lcm/drake_lcm.h"
#include "drake/lcmt_viewer_draw.hpp"
#include "drake/systems/analysis/simulator.h"
#include "drake/systems/framework/diagram.h"
#include "drake/systems/framework/diagram_builder.h"
#include "drake/systems/lcm/lcm_publisher_system.h"
#include "drake/systems/lcm/lcm_subscriber_system.h"
#include "drake/systems/lcm/serializer.h"
@david-german-tri
david-german-tri / pose_bundle_draw_demo.cc
Created March 13, 2017 18:24
PoseBundleToDrawMessage demo program
#include "drake/automotive/gen/driving_command_translator.h"
#include "drake/automotive/simple_car.h"
#include "drake/lcm/drake_lcm.h"
#include "drake/lcmt_viewer_draw.hpp"
#include "drake/systems/analysis/simulator.h"
#include "drake/systems/framework/diagram.h"
#include "drake/systems/framework/diagram_builder.h"
#include "drake/systems/lcm/lcm_publisher_system.h"
#include "drake/systems/lcm/lcm_subscriber_system.h"
#include "drake/systems/lcm/serializer.h"
@david-german-tri
david-german-tri / main.cc
Created March 10, 2017 23:02
Drake package example consumer
// See https://github.com/RobotLocomotion/drake/pull/5448
#include <iostream>
#include <Eigen/Dense>
#include "drake/systems/framework/diagram.h"
#include "drake/systems/primitives/adder.h"
using namespace drake::systems;
auto diagram_context = dynamic_cast<const DiagramContext<T>*>(&context);
DRAKE_DEMAND(diagram_context != nullptr);
for (const auto& action : sub_actions) {
const int index = action.first;
const UpdateActions<T>& action_details = action.second;
DRAKE_DEMAND(index >= 0 && index < num_subsystems());
const Context<T>* subcontext =
@david-german-tri
david-german-tri / gist:aceb8e45f6802d8db113baeb756b205b
Created August 15, 2016 19:57
InstantaneousQPController memory debug attempt
#include <array>
#include <iostream>
#include <map>
#include <memory>
#include <string>
#include "drake/common/drake_assert.h"
#include "drake/common/drake_path.h"
#include "drake/systems/plants/parser_urdf.h"
#include "drake/systems/plants/RigidBodyTree.h"
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.9
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
* changes to this file unless you know what you are doing--modify the SWIG
* interface file instead.
* ----------------------------------------------------------------------------- */
@david-german-tri
david-german-tri / abstract_value.cc
Created April 11, 2016 23:37
Abstract Values, SimBody style
#include <cassert>
#include <iostream>
#include <memory>
#include <string>
template<typename T> class Value;
class AbstractValue {
public:
AbstractValue() {}