Skip to content

Instantly share code, notes, and snippets.

View astraw's full-sized avatar

Andrew Straw astraw

View GitHub Profile
running build_ext
Traceback (most recent call last):
File "setup.py", line 309, in <module>
main()
File "setup.py", line 297, in main
**extras_kws
File "/home/astraw/PY263/lib/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/home/astraw/PY263/lib/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
Traceback (most recent call last):
File "/home/astraw/ros/ros/core/rospy/src/rospy/impl/tcpros_service.py", line 600, in _handle_request
response = convert_return_to_response(self.handler(request), self.response_class)
File "/home/astraw/ros/Flyatar/Flyatar/ros/actuation/stage/nodes/StageCommunicator.py", line 34, in get_stage_state
return_state = self.dev.get_state()
File "/home/astraw/ros/Flyatar/Flyatar/ros/actuation/stage/nodes/StageDevice.py", line 257, in get_state
self._get_motor_state()
File "/home/astraw/ros/Flyatar/Flyatar/ros/actuation/stage/nodes/StageDevice.py", line 354, in _get_motor_state
self._send_usb_cmd(self.USB_CMD_GET_STATE,False)
File "/home/astraw/ros/Flyatar/Flyatar/ros/actuation/stage/nodes/StageDevice.py", line 350, in _send_usb_cmd
File "/home/astraw/ros/ros/core/rospy/src/rospy/impl/tcpros_service.py", line 600, in _handle_request
response = convert_return_to_response(self.handler(request), self.response_class)
File "/home/astraw/ros/Flyatar/Flyatar/ros/actuation/stage/nodes/StageCommunicator.py", line 59, in set_stage_position
return_state = self.dev.update_position(x_pos_list,y_pos_list,vel_mag_list)
File "/home/astraw/ros/Flyatar/Flyatar/ros/actuation/stage/nodes/StageDevice.py", line 131, in update_position
x_vel_list,y_vel_list = self._find_velocity_from_position(x_pos_list,y_pos_list,vel_mag_list,x0,y0)
File "/home/astraw/ros/Flyatar/Flyatar/ros/actuation/stage/nodes/StageDevice.py", line 154, in _find_velocity_from_position
alpha = math.sqrt((vel_mag_list[point_n]**2)/(delta_x**2 + delta_y**2))
ZeroDivisionError: float division
#0 0x00007fffde9f56a1 in CCbasler_pylon_grab_next_frame_blocking_with_stride
(cam=0x7fffd0cd7af0,
out_bytes=0x4a0d560 "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\365\346\340\324\323\320\314\311\306\306\303\305\303\306\303\307\302\305\303\310\301\277\276\276\304\302\305\302\300\301\300\277\300\275\273\274\276\275\266\274\277\274\273\274\270\273\271\271\265\270\267\266\264\267\273\264\265\260\261\270\257\263\264\262\260\261\262\262\264\265\267\260\260\255\261\256\260\256\256\257\256\247\256\251\251\253\255\247\247\260\253\253\247\252\255\254\250\253\250\250\242\246\251\246\245\247\243\244\243\247\244\245\245\244\243\243\243\240\235\242\240\242\242\243\241\241"..., stride0=672, timeout=-1)
at /home/astraw/src/motmot/libcamiface/src/cam_iface_basler
cdef class ReconstructHelper:
cdef readonly double fc1, fc2, cc1, cc2
cdef readonly double k1, k2, p1, p2
cdef readonly double alpha_c
def __init__(self, fc1, fc2, cc1, cc2, k1, k2, p1, p2, alpha_c=0 ):
"""create instance of ReconstructHelper
ReconstructHelper(fc1, fc2, cc1, cc2, k1, k2, p1, p2 )
@astraw
astraw / dynamic_reconfigure_server2.py
Created July 2, 2011 04:46
subname enhanced ROS dynamic reconfigure server
# Software License Agreement (BSD License)
#
# Copyright (c) 2009, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
@astraw
astraw / download_data.py
Created October 23, 2011 07:25
query and download data from strawlab tethered data server
import json, os
import requests
SCRIPT_NAME = 'hausen4.py'
DIRNAME = '~/hausen4_datasets_tmp'
def get_auth():
user = os.environ.get('STRAWLAB_USER')
password = os.environ.get('STRAWLAB_PASSWORD')
@astraw
astraw / calib_test_numpy.py
Created November 5, 2011 12:51
computing the OpenGL projection matrix from intrinsic camera parameters
#!/usr/bin/env python
# stdlib imports
import os
#other imports
import numpy as np
import scipy.misc
import matplotlib.pyplot as plt
@astraw
astraw / wget-no-cache.sh
Created October 19, 2012 13:40
get the current webpage (and not a version in a proxy's cache)
wget --cache=no --header='Cache-Control: max-age=0, no-cache' $*
#!/usr/bin/env python
import requests
import time, datetime
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
import models
import sys, os