software:tortugabot
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| software:tortugabot [2014/12/01 14:02] – gkazhoya | software:tortugabot [2024/08/20 11:33] (current) – s_fuyedc | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== TortugaBot ====== | ====== TortugaBot ====== | ||
| + | |||
| + | The latest setup guide (Dec 2022) was moved to [[software: | ||
| The TortugaBot is a little robot which has an ASUS Xtion Pro Live as sensor. It is mainly build from acrylc glass and Aluminium bars. To move he is using two [[http:// | The TortugaBot is a little robot which has an ASUS Xtion Pro Live as sensor. It is mainly build from acrylc glass and Aluminium bars. To move he is using two [[http:// | ||
| Line 20: | Line 22: | ||
| * All the laptops should have a Desktop version of ROS installed. ATM it is ros-indigo-desktop | * All the laptops should have a Desktop version of ROS installed. ATM it is ros-indigo-desktop | ||
| * The software repo for TortugaBots is in '' | * The software repo for TortugaBots is in '' | ||
| - | * Right now it seems that you need both rosbuild and catkin workspaces. | + | * All the software |
| + | * The launch files for the robot are in '' | ||
| ==== Configuring a new user ==== | ==== Configuring a new user ==== | ||
| * For students we usually create users with no admin access | * For students we usually create users with no admin access | ||
| + | * Add the user to the '' | ||
| + | < | ||
| + | $ sudo usermod -a -G dialout USERNAME | ||
| + | $ groups USERNAME # to check if it worked | ||
| + | </ | ||
| * To make sure the OS won't go to bed when closing the lid change the following settings: | * To make sure the OS won't go to bed when closing the lid change the following settings: | ||
| - | | + | |
| * In " | * In " | ||
| + | * We put the ROS packages in the directory typically called '' | ||
| - | Rosinstall file: | ||
| < | < | ||
| - | - git: {local-name: | + | $ cd && mkdir -p workspace/ros/src |
| - | | + | $ source |
| - | - git: {local-name: | + | $ cd workspace/ros && catkin_make |
| - | version: | + | $ echo -e "\n# ROS\nsource \$HOME/workspace/ros/devel/setup.bash\n" |
| - | - git: {local-name: | + | $ . ~/.bashrc |
| - | | + | $ cd src && wstool init |
| - | - git: {local-name: | + | |
| - | version: indigo} | + | |
| - | - git: {local-name: | + | |
| - | version: indigo} | + | |
| - | - git: {local-name: | + | |
| - | | + | |
| - | - git: {local-name: | + | |
| - | | + | |
| - | - git: {local-name: | + | |
| - | version: hydro-devel} | + | |
| </ | </ | ||
| + | |||
| + | * The software is located mostly in the [[https:// | ||
| + | * To install everything in one shot you can use the '' | ||
| + | |||
| + | < | ||
| + | $ wstool merge https:// | ||
| + | $ wstool update | ||
| + | $ cd .. && rosdep install --from-paths src --ignore-src | ||
| + | </ | ||
| + | |||
| + | Check the [[https:// | ||
| + | |||
| ==== Reinstalling OS ==== | ==== Reinstalling OS ==== | ||
| Line 57: | Line 66: | ||
| * Right now the only OS on the netbooks is Ubuntu, so we get rid of the Windows | * Right now the only OS on the netbooks is Ubuntu, so we get rid of the Windows | ||
| - | * To get access to the boot menu (because the laptops are running UEFI) start Windows, keep the Shift key pressed while pressing " | + | * //If you have Windows:// |
| + | * //If you don't have Windows:// turn laptop on and start pressing Fn + F2 to get into Bios. After Lenovo logo Bios should come up. | ||
| * When installing your Ubuntu configure the boot menu to | * When installing your Ubuntu configure the boot menu to | ||
| * disable safe boot | * disable safe boot | ||
| Line 89: | Line 99: | ||
| + | To get sixad to start all the time, do: | ||
| + | cd /etc/rc2.d && sudo ln -s ../ | ||
| + | | ||
| + | | ||
| + | ==== guvcview ==== | ||
| + | |||
| + | guvcview and other uvc related things were not working with a recent kernel (4.4.x) | ||
| + | |||
| + | The following fixes the problem: | ||
| + | |||
| + | sudo add-apt-repository ppa: | ||
| + | sudo apt-get update | ||
| + | sudo apt-get install guvcview | ||
| + | |||
| + | |||
| + | |||
| + | ==== libuvc-camera for the webcams ==== | ||
| + | |||
| + | Create the file / | ||
| + | # UVC camera Microsoft LifeCam Studio | ||
| + | SUBSYSTEMS==" | ||
| + | |||
| + | (adjust for your webcam looking at lsusb) | ||
| + | |||
| + | Then restart udev: | ||
| + | / | ||
| + | |||
| + | And re-connect the webcam. It should now be readable for everyone. | ||
| + | |||
| + | Install the camera driver: | ||
| + | |||
| + | sudo apt install ros-indigo-libuvc-camera | ||
| + | |||
| + | |||
| + | Create a launch file with the following contents: | ||
| + | < | ||
| + | <group ns=" | ||
| + | <node pkg=" | ||
| + | <!-- Parameters used to find the camera --> | ||
| + | <param name=" | ||
| + | <param name=" | ||
| + | <param name=" | ||
| + | <!-- If the above parameters aren't unique, choose the first match: --> | ||
| + | <param name=" | ||
| + | | ||
| + | <!-- Image size and type --> | ||
| + | <param name=" | ||
| + | <param name=" | ||
| + | <!-- choose whichever uncompressed format the camera supports: --> | ||
| + | <param name=" | ||
| + | <param name=" | ||
| + | | ||
| + | <param name=" | ||
| + | <param name=" | ||
| + | | ||
| + | <param name=" | ||
| + | <param name=" | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | | ||
| + | |||
| + | |||
| + | ==== Configuring network to communicate with laser ==== | ||
| + | |||
| + | Connect the laser and make sure it is powered up with the battery. | ||
| + | Go to the network connections icon (which is next to your volume icon in the Ubuntu GUI). | ||
| + | There should be an ethernet connection existing which is not completely configured. | ||
| + | On the bottom of network connections menu click on "Edit Connections..." | ||
| + | Choose "Wired Connection 1" and click on " | ||
| + | There, in the " | ||
| + | In the "IPv4 Settings" | ||
| + | In " | ||
| + | |||
| + | Done. It should connect automatically anytime when the laser is connected. | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ==== Documentation ==== | ||
| + | |||
| + | One of our students was working on creating a map of the hallway using the little robots. Here's a PDF with some documentation of the mapping process and also the robot itself. | ||
| + | {{: | ||
software/tortugabot.1417442565.txt.gz · Last modified: (external edit)
