Skip to content

Instantly share code, notes, and snippets.

View adolfo-rt's full-sized avatar

Adolfo Rodriguez Tsouroukdissian adolfo-rt

View GitHub Profile
@adolfo-rt
adolfo-rt / shared_ptr_map_example.cpp
Created July 14, 2014 15:23
Example of how to store different types in a map using void shared pointers, while preserving correct destructors.
#include <algorithm>
#include <iostream>
#include <map>
#include <string>
#include <boost/shared_ptr.hpp>
class Foo
{
public:
~Foo() {std::cout << "Foo destructor" << std::endl;}
@adolfo-rt
adolfo-rt / gist:a5881e35ac146177fbe2
Last active August 29, 2015 14:02
ROS service call time comparison
import time
import rospy
from __future__ import print_function
from controller_manager_msgs.srv import *
n = 1000
def srv_test_slow():
t1 = time.time()
for i in range(n):
@adolfo-rt
adolfo-rt / reem_self_collision
Created May 1, 2014 08:32
Self-collision avoidance trajectory generated by MoveIt! - trajectory_msgs::JointTrajectory part
header:
seq: 17
stamp:
secs: 1398930444
nsecs: 601168584
frame_id: ''
goal_id:
stamp:
secs: 1398930444
nsecs: 601169114