Robobot

From Rsewiki
Revision as of 11:22, 27 December 2019 by Jca (Talk | contribs)

Jump to: navigation, search

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

Onshape-view.png Robobot v5.png


Figure 1. Robobot (V4 - left and V5 right), - see drawing https://cad.onshape.com/documents/97c36fb21a7a858c57c0af9f/w/0d867586bc28d7a9194d7ff3/e/ca0f539fa3eee3cfe0ed4130 and https://cad.onshape.com/documents/97c36fb21a7a858c57c0af9f/w/0d867586bc28d7a9194d7ff3/e/432d56e456affc4edca37317. The camera should be able to see the floor about 105mm in front of the robot (V4 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

Software description

Mission software

For the mission block, there is a template that illustrates how to make s mission and send it to the robot in snippets.

Mission template software

Bridge software

The bridge - called robobot_bridge - runs on the Raspberry Pi and is started when the Raspberry Pi starts.

Robobot_bridge overview

The autostart feature is implemented in '/etc/rc.local' with the following line

cd /home/local/robobot_bridge/build && ./robobot_bridge -a &

Mission software

The mission application is the primary user control for the robot.

Robobot mission application overview.

Mission is started manually from an ssh console.

Installation instructions

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

Robobot on 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