Sensor Cart

This is a cart setup for testing sensors and sensor calibration.

Components

Sensors

Computing

Controllers

Relevant ROS Packages

Before you can use the cart

  1. Get an account on prc0 (Ask Jeremy or Scott Hassan to help you with this)
    • Make sure your account is in the groups: dialout, disk, video
  2. Set up an ssh key on the cart (this lets you use remote roslaunch without sticking your password in an xml file)

    ssh-keygen -t dsa
    scp ~/.ssh/id_dsa.pub prc0:.ssh/authorized_keys2
    
  3. Make sure you have installed ROS on both prc0 and your local machine following the directions at ROS/Installation

    • NOTE: prc0 uses a local disk rather than your shared nfs home directory so you will have to explicitly checkout ROS on prc0
  4. Build sensor cart on both prc0 and your local machine. Type the following command on BOTH machines:

    rosmake sensor_cart
    

Using the cart

  1. Plug in the cart powerstrip
  2. Plug in the cart ethernet, it should run to prc0 eth0 (port at the back of the computer)
  3. Make sure the Hokuyo is level (its initial position when etherdrive is turned on is considered to be the angle 0)
  4. Power on the cart (red button on the power strip)
  5. Power on prc0 (power button on front of computer) and wait for it to boot
  6. Power on the etherdrive board if it is not already on
  7. ssh into prc0 and check to see if the necessary firewire modules are loaded by running: lsmod | grep 1394.

    • If you don't see:

      raw1394                31096  0  
      video1394              19800  0 
      ohci1394               36528  1 video1394
      ieee1394               96312  4 raw1394,video1394,sbp2,ohci1394
      
      then you will need to unplug and replug the firewire cable from the computer. (It would be nice to do this in software, but just loading the modules doesn't do the trick.)
  8. On your local machine, open up 3 terminals
    1. In the first, start roscore

      roscore
      
    2. In the second, launch the sensors:

      export ROS_MASTER_URI=http://<your_machine_name>:11311
      roscd sensor_cart
      roslaunch sensors.xml
      
      NOTE: It will take the sensor 10-15 seconds to actually start moving. This is because of the timing calibration stage of the hokuyo.
    3. In the third, launch the recorder

      roscd sensor_cart
      roslaunch recorder.xml
      
      Three windows should pop up:
      • cam_view is the view from the firefly camera
      • intensity_view is the intensity image from the tilting hokuyo
      • range_view is the range image from the tilting hokuyo
      Hitting "enter" in any of the image windows will save the current set of images and point cloud
      • The saved files will go into a directory called recordings_<date and time>

  9. When done, stop processes by hitting control-c in each of the opened terminals
  10. Shutdown prc0:

    ssh prc0 sudo shutdown -h now
    
  11. When you hear the computer turn off, the cart can be turned off by flipping the red switch on the power strip

Configuration

There are some configurable parameters in the file: ~/ros-pkg/drivers/robot/sensor_cart/sensors.xml If these are changed you will need to re-launch the sensors.

Debugging

Wiki: Sensor Cart (last edited 2008-10-22 23:37:34 by KenConley)