Debugging

Come here first when debugging! Things go wrong all the time, and coming here first fixes most common issues.


Macbook bluetooth is stuttering

Enter below in terminal:
sudo killall coreaudiod


Installing OpenCV on OSX

Follow instructions here.
The most important parts of that link are as follows:

-install OpenCV via Homebrew
-link the cv.py and cv2.so files from Homebrew to the current Python path

cd /usr/local/lib/python2.7/site-packages/
ln -s /usr/local/Cellar/opencv/2.4.10/lib/python2.7/site-packages/cv.py cv.py
ln -s /usr/local/Cellar/opencv/2.4.10/lib/python2.7/site-packages/cv2.so cv2.so


general ubuntu

-when installing a fresh version of ubuntu, follow this site to install codecs and stuff so cameras connect


ar_track_alvar

-usb_cam launches camera as a ros node
-define launch file in roslaunch ar_track_alvar robot1.launch
-world frame is not pre-defined
-rosrun ar_track_alvar createMarker allows you to define cm as units and saves the marker accordingly. however, the picture has to be zoomed in to get accurate dimensions when printing
-creating a fixed frame for camera

<node pkg=”tf” type=”static_transform_publisher” name=”world_to_cam”
args=”0 0 0 0 0 0 world usb_cam 100″ />


arbotix

-press reset button when programming if getting “programmer not responding” error
-disconnect from rosserial before programming new things
-check library source code when confused, BioloidController has good in-code documentation


ros

-to use custom messages in roscpp, make sure add_message_files(*custom message files here*) and generate_messages(*roslib provided messages*) is added to the CMakelists
-after cloning new ros packages, make sure to catkin_make/catkin_make install in the main folder so all components are connected


arduino

-if programming when not sudo throws errors, set serial.debug_rate=9600 in the arduino preferences file

Leave a Reply

Your email address will not be published. Required fields are marked *