Robobot

From Rsewiki
(Difference between revisions)
Jump to: navigation, search
(Installation instructions)
Line 32: Line 32:
 
Click on the link below to go the instructions.
 
Click on the link below to go the instructions.
  
Raspberry [[Full installation instructions]]
+
Raspberry [[Full installation instructions]] including opencv-3, but stop before "Mobotware".
  
 
Windows tools
 
Windows tools

Revision as of 09:15, 20 January 2019

This page is for ROBOBOT, an extension of REGBOT with a raspberry pi and three wheels.

Onshape-view.png Camera placement.png

Figure 1. Robobot drawing (V4), all distances in mm (front wheel not in right place, as the turn servo is turned the other way) - see drawing https://cad.onshape.com/documents/97c36fb21a7a858c57c0af9f/w/0d867586bc28d7a9194d7ff3/e/ca0f539fa3eee3cfe0ed4130 . The normal camera (version 2) should be able to see the floor about 105mm in front of the robot.

Contents

Overview

Robobot-overview.png

Figure 2. ROBOBOT is an extension of the simpler robot REGBOT. The REGBOT part controls the wheels, interfaces to sensors like an IMU (6 axis accelerometer and gyro), IR distance sensors (2), and a line edge detector. REGBOT further controls up to 3 servos and controls the battery supply. ROBOBOT is further equipped with a Raspberry Pi to allow more complicated missions. On the Raspberry Pi runs an interface process called robobot_bridge, this interfaces to a small 5-line display, to a game-pad and is the main interface to the REGBOT. The mission process collects data from the bridge and from ROBOBOT, and supplies the REGBOT with small mission snippets. The mission further holds the interface to the Raspberry Pi camera and may use the Open-CV library functions. The speaker allows debugging messages or other sound effects. By default battery voltage is announced at intervals.

The ROBOBOT functions are available on the net at port number 24001. The existing user interface for REGBOT can access REGBOT functions from this port.

The gamepad can take over control of the mission fails, and can be used to initiate missions or other functions using the buttons and axis on the gamepad.

More on the mission software here Full_installation_instructions#ROBOBOT_mission_demo_C.2B.2B.

Getting started

This section contains a quick-start guide for the user. It includes how to get the robot connected to Eduroam WiFi for easy access, an explanation of software and software structure and present a few examples to get the robots driving. Press the link below to go to the instructions page.

Instructions for getting started

Installation instructions

This section contains the complete instructions for setting up a clean Raspberry Pi.

Click on the link below to go the instructions.

Raspberry Full installation instructions including opencv-3, but stop before "Mobotware".

Windows tools

Use winscp (from https://winscp.net/eng/download.php?TB_iframe) to move files to and from the raspberry pi.

Use putty (from https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html) to get terminal access to the raspberry.

To connect to raspberry using a cable (from raspberry direct to a PC) requires that both has a manually set IP adress. The Raspberry side is 192.168.0.2, and you should probably manually set the IP of your PC to the same local net, e.g. 192.168.0.100.

There is a windows executable client for configuration and setting up the REGBOT part of the ROBOBOT. This is found in 'regbot/qtgui/dist/regbot.exe' in the raspberry, and can be fetched using winscp.

Update ROBOBOT source

On the raspberry there is the following directories:

$ ls
  mission          Mission software skeleton that can also access the raspberry camera
  qtgui            Copy of the configuration gui (python files), and a windows executable in the 'dist' subdirectory
  regbot           Firmware for the REGBOT part
  robobot_bridge   The connection software between the REGBOT, the small display, the remote control and the mission software

Update

All these source directories are already connected to a SVN repository, but probably need update, by

cd 
cd mission
svn up
cd ../qtgui
svn up
cd ../regbot
svn up
cd ../robobot_bridge
svn up

Compile

If there is updates, then they need a recompile (except qtgui).

Mission and Robobot_bridge has a 'build' subdirectory with a Makefile, REGBOT has the Makefile in the base directort.

Type

make

to compile

If there is no makefile in the build directory, then make one first by

cd build
cmake ..

Robobot_bridge

Robobot_bridge is started from the startup script /etc/rc.local, and thus need a reboot to start the new version,

or start it manually (is also better for debugging, as it has some on-line help (type help after start):

sudo pkill robobot_bridge
cd ~/robobot_bridge/build
sudo ./robobot_bridge

After a REGBOT compile, the generated regbot.hex need to be loaded into the teensy, this can be done from the raspberry, if you have a screen and a keyboard (or a computer with an X-server), or from another computer, but requires that a USB cable to that computer and install the loader application (from https://www.pjrc.com/teensy/loader.html )

Setup issues

A number of parameters in the REGBOT part of the robot needs setting.

Some suggestions are provided here using the REGBOT GUI (available on the raspberry in the qtgui directory, see above):

Regbot settings

Hardware

The Robobot frame is 3D printed, the design is in onshape - see this link https://cad.onshape.com/documents/97c36fb21a7a858c57c0af9f/w/0d867586bc28d7a9194d7ff3/e/ca0f539fa3eee3cfe0ed4130, in the list of parts to the left it is possible to export (right-click) as STL files, that you can slice for your 3D printer.

The REGBOT part of the hardware is described on the Regbot_version_4 page.

Connection of the line display to the Raspberry pi is here Robobot Hardware.

Status

Se status for robotter sammen med REGBOT status: REGBOT_robot_status#Robobot.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox