Skip to content

Instantly share code, notes, and snippets.

View gavanderhoorn's full-sized avatar

G.A. vd. Hoorn gavanderhoorn

View GitHub Profile
#!/usr/bin/env python
from __future__ import print_function
import rospy
from concurrent.futures import ThreadPoolExecutor
class AsyncServiceProxy(object):
"""Asynchronous ROS service proxy
@NikolausDemmel
NikolausDemmel / Dockerfile
Last active January 24, 2017 22:56
Dockerfile for marv-robotics
FROM ros:indigo
MAINTAINER Nikolaus Demmel <Nikolaus.Demmel@de.bosch.com>
################################################################################
## ARGUMENTS
# optional use --build-arg or ARG for proxy variables instead, but for our case
# we want them set also in the running container for convenience
ARG DOCKER_HOST_IP=172.17.0.1
ENV no_proxy="127.0.0.1,$DOCKER_HOST_IP"
@awesomebytes
awesomebytes / debian_from_ros_pkg.md
Last active June 27, 2024 08:01
How to create a debian from a ROS package
void Bag::reindexChunk(uint64_t chunk_pos) {
map<uint32_t, multiset<IndexEntry> >::iterator cit;
std::map<uint32_t, uint32_t>::iterator it;
ChunkHeader chunk_header;
ChunkInfo chunk_info;
bool chunk_ok = false;
uint32_t data_size = 0;
uint8_t op = 0xff;
readChunkHeader(chunk_header);
if (chunk_header.compressed_size == 0) {