Skip to content

Instantly share code, notes, and snippets.

View mgruhler's full-sized avatar

Matthias Gruhler mgruhler

  • Stuttgart, Germany
View GitHub Profile
#!/usr/bin/env python
import rospy
from test.msg import test
import random
_frame_id = "blub"
_traj_id = random.randint(0, 500)
_traj_step = random.randint(0, 500)
_joints_res_eff_cmd = [random.random() for x in xrange(7)]
_joints_pos = [random.random() for x in xrange(7)]
@mgruhler
mgruhler / torque_examples_2drivers.cpp
Created March 12, 2019 07:14
An example test file to drive to Elmo Gold DC Whistle drives using ethercat, based on https://github.com/OpenEtherCATsociety/SOEM/blob/master/test/linux/simple_test/simple_test.c
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#include <math.h>
#include <ethercattype.h>
#include <nicdrv.h>
#include <ethercatbase.h>