Skip to content

Instantly share code, notes, and snippets.

View wjwwood's full-sized avatar
🙃

William Woodall wjwwood

🙃
View GitHub Profile
@wjwwood
wjwwood / rosdep_key_checker.py
Last active August 29, 2015 14:12
Checks the packages in the local directory against rosdep for utopic and vivid for Jade.
#!/usr/bin/env python
from __future__ import print_function
from collections import defaultdict
from catkin_pkg.packages import find_packages
from bloom.logging import fmt
william@eatable:/tmp/testing_ws
$ tree
.
└── src
├── CMakeLists.txt -> /opt/ros/hydro/share/catkin/cmake/toplevel.cmake
└── example
├── CMakeLists.txt
├── msg
│   └── Test.msg
└── package.xml
Script started on Tue Oct 14 10:52:45 2014
%
]2;william@dosa: ~/tmp/2ros2]1;~/tmp/2ros2

william@dosa ~/tmp/2ros2 
% [?1h=eexport[?1l>
]2;export]1;exportApple_PubSub_Socket_Render=/tmp/launch-ODXdT6/Render
CLICOLOR=yes

ROS Catkin UX Discussion: Improving Catkin and its Tools

Planning for June 9th, 10:15am (PDT) 2014 Video Conference

Participants (add your name here and speak your mind!):

  • Jonathan Bohren

  • Mike Purvis

@wjwwood
wjwwood / example.py
Created September 3, 2014 21:11
argument function
def extract_argument_group(args, delimiting_option):
"""Extract a group of arguments from a list of arguments using a delimeter.
Here is an example:
.. code-block:: python
>>> extract_argument_group(['foo', '--args', 'bar', '--baz'], '--args')
(['foo'], ['bar', '--baz'])
@wjwwood
wjwwood / my_node.cpp
Last active February 14, 2021 13:44
Example C++ Subscription, use `c++ -I/opt/ros/hydro/include -L/opt/ros/hydro/lib -lroscpp -lroscpp_serialization -lrosconsole my_node.cpp -o my_node`
#include <vector>
#include "ros/ros.h"
#include "geometry_msgs/PoseStamped.h"
std::vector<geometry_msgs::PoseStamped::ConstPtr> poses;
void handle_poses(const geometry_msgs::PoseStamped::ConstPtr& msg)
{
ROS_INFO_STREAM("Received pose: " << msg);
@wjwwood
wjwwood / gist:5567c13d3b281803b57f
Last active August 29, 2015 14:02
github pull request api returning 405
curl -v -H 'Content-Type: application/json;charset=utf-8' -H 'Authorization: token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' -H 'User-Agent: bloom 0.5.11-dev' --data '{"base": "master", "head": "tfoote:bloom-geometry_experimental-6", "title": "geometry_experimental: 0.5.5-1 in 'indigo/distribution.yaml' [bloom]", "body": "truncated for testing"}' https://api.github.com/repos/ros/rosdistro/pulls
* Adding handle: conn: 0x1ab5e10
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x1ab5e10) send_pipe: 1, recv_pipe: 0
* About to connect() to api.github.com port 443 (#0)
* Trying 192.30.252.138...
* Connected to api.github.com (192.30.252.138) port 443 (#0)
* successfully set certificate verify locations:
@wjwwood
wjwwood / CMakeLists.txt
Created May 7, 2014 00:04
cmake: CMakeLists.txt preamble #snippet
cmake_minimum_required(VERSION 2.8.3)
project(PROJECT)
@wjwwood
wjwwood / CMakeLists.txt
Created May 7, 2014 00:02
catkin: install folder to share #snippet
install(DIRECTORY folder
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
@wjwwood
wjwwood / head_tilt.dae
Created May 1, 2014 21:31
COLLADA file for rviz ticket ros-visualization/rviz#517
<?xml version="1.0" encoding="utf-8"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
<asset>
<contributor>
<author>WakiMudi</author>
<authoring_tool>OpenCOLLADA2009 x64</authoring_tool>
<comments>
ColladaMaya export options:
bakeTransforms=0;relativePaths=0;copyTextures=0;exportTriangles=0;exportCgfxFileReferences=1;
isSampling=0;curveConstrainSampling=0;removeStaticCurves=1;exportPolygonMeshes=1;exportLights=1;