Skip to content

Instantly share code, notes, and snippets.

View evenator's full-sized avatar

Ed Venator evenator

View GitHub Profile
@evenator
evenator / ifastdemo.cpp
Created January 29, 2013 07:51
ikfast code files
/*
* IKFast Demo
*
* Shows how to calculate FK from joint angles.
* Calculates IK from rotation-translation matrix, or translation-quaternion pose.
* Performance timing tests.
*
* Run the program to view command line parameters.
*
*
@evenator
evenator / gist:5242794
Created March 26, 2013 03:02
attaching objects to gripper in ROS
void MechanismInterface::attachObjectToGripper(std::string arm_name, std::string collision_object_name)
{
arm_navigation_msgs::AttachedCollisionObject obj;
obj.object.header.stamp = ros::Time::now();
obj.object.header.frame_id = handDescription().robotFrame(arm_name);
obj.object.operation.operation = arm_navigation_msgs::CollisionObjectOperation::ATTACH_AND_REMOVE_AS_OBJECT;
obj.object.id = collision_object_name;
obj.link_name = handDescription().attachLinkName(arm_name);
obj.touch_links = handDescription().gripperTouchLinkNames(arm_name);
attached_object_pub_.publish(obj);
if [ -e ~/ros_buildfarm_ws ] ; then
rm -rf ~/ros_buildfarm_ws
fi
mkdir ~/ros_buildfarm_ws && cd ~/ros_buildfarm_ws
virtualenv venv
. ./venv/bin/activate
git clone https://github.com/ros-infrastructure/ros_buildfarm.git
cd ros_buildfarm
python setup.py install
<?xml version="1.0" encoding="utf-8"?>
<testsuite errors="0" failures="0" name="unittest.suite.TestSuite" tests="1" time="11.637"><testcase classname="rostest.runner.RosTest" name="testroswtf_command_line_online" time="11.6368" /><system-out>&lt;![CDATA[
[ROSTEST]setup[/home/evenator/code/ros-kinetic/src/ros_comm/utilities/roswtf/test/roswtf.test] run_id[f7dd4dde-e86f-11e5-9c78-f46d049c6d09] starting
&amp;#x001B;[1mstarted roslaunch server http://athena:34663/&amp;#x001B;[0m
SUMMARY
========
PARAMETERS
* /rosdistro: kinetic
@evenator
evenator / git-fulldiff.sh
Created March 17, 2016 06:00
A Oneliner for Git Diffs Including New Files
unstaged=$(git status --porcelain | grep -oP '(?<=^\?\? )(.*)$'); echo "$unstaged" | xargs -rd'\n' git add -N; git diff; echo "$unstaged" | xargs -rd'\n' git reset HEAD
This file has been truncated, but you can view the full file.
[bloom] bloom version 0.5.21
[info] ROS Distro index file associate with commit '143af2346275abbfbc94072366f9c149007fd634'
[info] New ROS Distro index url: 'https://raw.githubusercontent.com/ros/rosdistro/143af2346275abbfbc94072366f9c149007fd634/index.yaml'
[info] ==> Fetching 'marti_common' repository from 'https://github.com/swri-robotics-gbp/marti_common-release.git'
[debug] track_branches(bloom, None)
[debug] Tracking branches: []
[debug] Checking out to master
[debug] Requested checkout reference is the same as the current branch
[debug] /tmp/tmp7ow7C_:$ git ls-tree bloom
[debug] track_branches(['bloom', 'master'], None)
@evenator
evenator / lexical_cast_test.cpp
Created November 20, 2017 22:14
Testing lexical casts of bools
#include <boost/lexical_cast.hpp>
#include <sstream>
#include <iostream>
std::string bool_to_str(bool b)
{
return b ? "true" : "false";
}
template <class T>
@evenator
evenator / COVID.ipynb
Created November 20, 2020 04:24
COVID Plotting Notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@evenator
evenator / import_google_music.py
Created February 1, 2025 02:56
A Little Script to Organize Your MP3 Files
#! /usr/bin/env python3
import os
from pathlib import Path
import shutil
import eyed3
tracks_dir = Path("/home/ed/Downloads/Takeout/Google Play Music/Tracks")
music_dir = Path.home()/'Music'