Skip to content

Instantly share code, notes, and snippets.

@eak24
eak24 / gist:818be2e65b737029ae12
Created March 24, 2016 12:30
Error with building gps_agent_pkg ros package
~/gps/src/gps_agent_pkg$ make -j[ 0%] [ 0%] Built target rospack_genmsg_libexe
Built target rosbuild_premsgsrvgen
[ 3%] [ 3%] [ 7%] [ 7%] [ 9%] [ 11%] [ 13%] [ 15%] Generating msg_gen/cpp/include/gps_agent_pkg/TrialCommand.h
Generating msg_gen/lisp/TrialCommand.lisp, msg_gen/lisp/_package.lisp, msg_gen/lisp/_package_TrialCommand.lisp
[ 16%] Generating src/gps_agent_pkg/msg/_LinGaussParams.py
[ 18%] [ 20%] [ 22%] Generating src/gps_agent_pkg/msg/_PositionCommand.py
Generating src/gps_agent_pkg/msg/_SampleResult.py
Generating src/gps_agent_pkg/msg/_TfParams.py
Generating src/gps_agent_pkg/msg/_TrialCommand.py
Generating src/gps_agent_pkg/msg/_TfActionCommand.py
@eak24
eak24 / aggregate_logs.log
Created April 22, 2016 23:41
Aggregate Error Log for JSON Server Publishing
Apr 22, 2016 11:03:56 PM org.opendatakit.aggregate.task.UploadSubmissionsWorkerImpl uploadSubmissions
INFO: There are 10 submissions available for upload
Sending one JSON Submission
http://odk-post-receiver-1288.appspot.com?
org.opendatakit.aggregate.exception.ODKExternalServiceException: Not Found (404)
at org.opendatakit.aggregate.externalservice.JsonServer.sendRequest(JsonServer.java:143)
at org.opendatakit.aggregate.externalservice.JsonServer.insertData(JsonServer.java:197)
at org.opendatakit.aggregate.externalservice.AbstractExternalService.sendSubmission(AbstractExternalService.java:141)
at org.opendatakit.aggregate.task.UploadSubmissionsWorkerImpl.sendSubmissions(UploadSubmissionsWorkerImpl.java:318)
at org.opendatakit.aggregate.task.UploadSubmissionsWorkerImpl.streamSubmissions(UploadSubmissionsWorkerImpl.java:300)
@eak24
eak24 / gist:3e367efefbac2f6ccbb58ae38e09476d
Created April 28, 2016 15:35
PR2 joint_states message
---
header:
seq: 2468
stamp:
secs: 29
nsecs: 863000000
frame_id: ''
name: ['fl_caster_rotation_joint', 'fl_caster_l_wheel_joint', 'fl_caster_r_wheel_joint', 'fr_caster_rotation_joint', 'fr_caster_l_wheel_joint', 'fr_caster_r_wheel_joint', 'bl_caster_rotation_joint', 'bl_caster_l_wheel_joint', 'bl_caster_r_wheel_joint', 'br_caster_rotation_joint', 'br_caster_l_wheel_joint', 'br_caster_r_wheel_joint', 'torso_lift_joint', 'torso_lift_motor_screw_joint', 'head_pan_joint', 'head_tilt_joint', 'laser_tilt_mount_joint', 'r_upper_arm_roll_joint', 'r_shoulder_pan_joint', 'r_shoulder_lift_joint', 'r_forearm_roll_joint', 'r_elbow_flex_joint', 'r_wrist_flex_joint', 'r_wrist_roll_joint', 'r_gripper_joint', 'r_gripper_l_finger_joint', 'r_gripper_r_finger_joint', 'r_gripper_r_finger_tip_joint', 'r_gripper_l_finger_tip_joint', 'r_gripper_motor_screw_joint', 'r_gripper_motor_slider_joint', 'l_upper_arm_roll_joint', 'l_shoulder_pan_joint', 'l_shoulder_lift_joint', 'l_forearm_roll_joint', 'l_elbow_flex_joint', 'l
@eak24
eak24 / Baxter joint_states
Created April 29, 2016 17:52
Obtained with rostopic echo /robot/joint_states
header:
seq: 10625
stamp:
secs: 214
nsecs: 469000000
frame_id: ''
name: ['head_pan', 'l_gripper_l_finger_joint', 'l_gripper_r_finger_joint', 'left_e0', 'left_e1', 'left_s0', 'left_s1', 'left_w0', 'left_w1', 'left_w2', 'r_gripper_l_finger_joint', 'r_gripper_r_finger_joint', 'right_e0', 'right_e1', 'right_s0', 'right_s1', 'right_w0', 'right_w1', 'right_w2']
position: [-1.3303056078939335e-06, 0.02083301101080905, 3.328574553711741e-08, -0.016617037040250082, 0.49445588919115835, 0.1924810211904111, 1.0470000327588433, -0.18420314498418122, 0.026792412231963603, -0.014075382271455439, 0.02083300156520608, 8.986721523828986e-10, -0.02116649879887955, 0.49557111147642985, -0.27265284803969614, 1.0470000138292965, -0.08830157815545636, 0.027997813944400818, 0.027037764975140988]
velocity: [1.3665333866822798e-07, -1.517986891918702e-06, -7.467986030460762e-06, -1.7894644630392019e-06, 8.051211207654336e-05, -9.60019447520543e-07, -3.181790485525843e-05, -3.079680815759514e-05, -4.9076956105191955e-0
@eak24
eak24 / PR2 to Baxter joint mappings
Created May 18, 2016 15:08
These are the mappings from the pr2 joints to the Baxter joints.
PR2: 'r_upper_arm_roll_joint', 'r_shoulder_pan_joint', 'r_shoulder_lift_joint', 'r_forearm_roll_joint', 'r_elbow_flex_joint', 'r_wrist_flex_joint', 'r_wrist_roll_joint'
Baxter: 'right_e0', 'right_s0', 'right_s1', 'right_w0', 'right_e1', 'right_w1', 'right_w2'
@eak24
eak24 / gist:2162c56508629c109cff99e2720ae351
Created August 25, 2017 23:21
Monroe's Anaconda Error Stacktrace
C:\Users\monroe>Anaconda3\Scripts\pip.exe
Traceback (most recent call last):
File "C:\Users\monroe\Anaconda3\Scripts\pip-script.py", line 3, in <module>
import pip
File "C:\Users\monroe\Anaconda3\lib\site-packages\pip\__init__.py", line 26, in <module>
from pip.utils import get_installed_distributions, get_prog
File "C:\Users\monroe\Anaconda3\lib\site-packages\pip\utils\__init__.py", line 27, in <module>
from pip._vendor import pkg_resources
File "C:\Users\monroe\Anaconda3\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 3018, in <module>
@_call_aside
These are the files for syncing Atom IDE settings.
To apply them to your Atom, see the instructions
on the wiki that referred you here.
,,,,,,,,,,,,,
.;;;;;;;;;;;;;;;;;;;,.
.;;;;;;;;;;;;;;;;;;;;;;;;,
.;;;;;;;;;;;;;;;;;;;;;;;;;;;;.
;;;;;@;;;;;;;;;;;;;;;;;;;;;;;;' .............
@eak24
eak24 / docstring.py
Created March 6, 2018 20:37
Doc string tests
def add(a, b):
"""
This is a function that implements adding
>>> from aide_design.play import *
>>> import math
>>> add(5, 10)
15
>>> add(25*u.m,5*u.m)
30 meter
>>> np.sqrt(2)
@eak24
eak24 / yaml_ize_pint.py
Created March 10, 2018 15:09
Converting Pint Quantities To YAML and back with YAML tags in Pint
import pint
import yaml
u = pint.UnitRegistry(system='mks', autoconvert_offset_to_baseunit=True)
def units_representer(dumper, data):
return dumper.represent_scalar(u'!u', str(data))
yaml.add_representer(u.Quantity, units_representer)
def units_constructor(loader, node):
value = loader.construct_scalar(node)
@eak24
eak24 / LFOM_example.yaml
Created March 12, 2018 21:44
This is an example YAML LFOM defaults.
flow: {{ flow }}
SDR: 26
hl: !u 20*u.cm