• No results found

GIMnet on the MICA wheelchair

N/A
N/A
Protected

Academic year: 2022

Share "GIMnet on the MICA wheelchair"

Copied!
3
0
0

Loading.... (view fulltext now)

Full text

(1)

GIMnet on the MICA Wheelchair

H˚ akan Fredriksson Kalevi Hyypp¨a Computer Science and Electrical Engineering

Lule˚ a University of Technology, Sweden hakan.fredriksson@ltu.se, kalevi.hyyppa@ltu.se

Abstract

This paper describes the implementation of GIMnet on the MICA wheelchair.

1. The MICA wheelchair

The wheelchair seen in Figure 1, is behind all the fancy equipment an ordinary electrical driven wheelchair. It has during several years of development been transformed into it’s current state, known as the Mobile Internet Connected Assistant, MICA.

The concept behind the wheelchair is to do research on navigation systems that can help elderly and dis- abled people to manage daily life without help from other people. This kind of research requires flexible software that allow (relatively) easy implementation and testing of algorithms. Besides that, the wheelchair is also used as general test vehicle for other types of autonomous functionality.

Our requirements on a software platform is the possibility to share sensor-data between different pro- grams. We also want easily managed remote commu- nication over Ethernet/Wlan. Furthermore, the idea is to build up a library of software/drivers for sensors and equipment that can be reused in other projects. Since GIMnet more or less meets all these requirements ”out of the box” the choice was not hard to leave all old code and do a total makeover of our software platform.

1.1. MICA in press

The MICA wheelchair has, before GIMnet was im- plemented, been involved in several projects [3] [4] [6]

[7] [5], as a platform for different experiments concern- ing robotics.

The GIMnet implementation on MICA was per- formed during 2009 as a master thesis [1]. In [2], MICA, with GIMnet, served as instrument carrier for two laser scanners.

Figure 1. The MICA wheelchair.

2. MICA Hardware

The wheelchair was constructed and built by Bo- den Rehab in Boden, Sweden. It is powered by two standard car batteries that supplies two electri- cal DC-motors and all other equipment with 24 V. The wheelchair uses differential drive and has encoders con- nected to each wheel.

A variety of extra equipment are mounted on MICA, most of them used for navigation purposes.

A Sick LMS200 Laser Scanner. Configured with a field of view of 180 and a angular resolution of 1.

(2)

With our current serial port configuration we get a scan frequency of 10Hz.

B KVH DSP3000 Rate Gyro. Measures input rates up

±375/s degrees per second and output data with 1000Hz.

C Lawicel CAN232 CAN-Bus interface.

D Advantech UNO-2171 PC with a SSD. Working at 1GHz with 512MB RAM. Has 4 serial ports and dual Ethernet and USB connections. The OS used on the computer is XUbuntu version 8.10.

E Touchscreen.

F Linksys WRT54GL router.

G NDC8 laser/beacon navigation system (LazerWay).

H Camera/flash beacon navigation system.

Through the CAN interface we can address the wheel encoders and control the wheel speed.

3. MICA Software

The software system on MICA is divided into several different small programs, connected through a tcpHub.

Figure 2 shows a detailed view of the software imple- mented on MICA. In Figure 3 the data flow between the programs is shown.

Figure 2. Program structure on MICA. The oval blobs represent different programs. All solid squares represent different hardware.

The laser, gyro, and joystick, can all be seen as pas- sive drivers in the sense that all they do is provide data for everyone interested. The MICA-Can program is a little bit more advanced since it, interpret the odometer data from the wheelchair, listens to gyro data, runs a dead-reckoning algorithm, and control the wheel speed.

Figure 3. Data flow between programs on MICA.

The PathFollower program is used when you want the wheelchair to follow a predefined path. A path is represented by a list of coordinates you want the ve- hicle to follow. By using a dog-rabbit approach the vehicle is moved along the path. In the current state the program uses the dead-reckoning position from the MICA-can program as the actual position. PathFol- lower also interprets data from the laser so that the wheelchair will not hit any obstacle.

The SocketServer in combination with the Socket- Client are used as a gateway from GIMnet to Matlab.

Since java has platform independent support for tcp- sockets, this combination makes it possible to connect Matlab to GIMnet on both Linux and Windows based computers. As of now, the dead-reckoning position and the laser data is transferred to Matlab on a remote com- puter. You can then do the path-planning in Matlab and when you are satisfied with the path, you send it to MICA. The PathFollower program will then make the wheelchair drive safely and smoothly to the desired destination.

4. GIMnet Experience

Despite the not so detailed documentation we man- aged to implement and make use of GIMnet. A quite easy to use API and a lot of persistence made it possi- ble. We have not yet explored every possible configu- ration and functions implemented in GIMnet, but the ones we tried work well.

4.1. Bugs

Though it feels sad to report, we found one feature in GIMnet that may be considered to be classified as a bug.

You can only subscribe to one service from one client that is not listed on the tcpHub. When you try to subscribe to services from two or more unlisted clients, the program crashes. This is usually only a problem when you restart the tcpHub. Then you have to start

(3)

and stop every service/client once to make sure that they are all listed on the hub.

However, we have a work-around solution for this.

Before you subscribe to a service you do a check if the wanted client is listed on the hub. As long as the client ever has been connected it will be listed and then everything works fine. If it is not listed, you wait until the client appears.

4.2. Ideas for future development

Easier implementation of data types.

Way to alter the original GIMnet code in order to im- plement a new data type is not a preferred way for us.

It would be nice if we could provide code packages that is possible to compile directly with the original GIM- net code without any modifications. There may not be any easy way to change this. However, since GIMnet in the background sends the data as text-strings, one way could be to break out the data-casting out of the GIMnet source code and provide the data type defini- tions with the project? We have not tried this, but it might work.

Support for more data types in the base version of GIMnet.

We found a few examples of commonly used data types that could be included into GIMnet.

CAN Can messages with ID and eight bytes of data.

Laser Range data from a laser scanner in some kind of general form that can be used for different lasers.

I.e. the receiver should not need to know exactly what kind of laser it is, or how it is configured, all information should be provided in the data packet.

Pose 6DoF position and orientation.

IMU 6DoF inertial data.

All datatypes should include a field with timestamp where you, in the program, can specify what time the data was created.

Port GIMI-API to Java.

This would make it possible to access data, for instance within Matlab, platform independent.

5. Other use of GIMnet

After the success of implementing GIMnet on MICA we stumbled on a project regarding remote control of a Caterpillar 973c track loader. The choice to use GIM- net came naturally. We can now remotely control track speed, arm and bucket, engine start and stop, and a few other functions, that allows complete operation of the

Figure 4. Remote controlled Caterpillar 973c.

track loader. Current work involves implementation of a guiding system that will help the operator manoeu- vring the vehicle.

References

[1] R. Almqvist, F. Brostr¨om, and J. Brynolf. Laser guided vehicles: implementing and testing a GIMnet based software platform on the electric wheelchair MICA.

Master thesis, Lule˚a University of Technology, 2009.

ISSN 1402-1617 / ISRN LTU-EX–09/178–SE / NR 2009:178.

[2] M. Billaux. Laser guided vehicle: on navigation using two synchronized lasers. Master thesis, Lule˚a University of Technology, 2009. ISSN 1402-1617 / ISRN LTU-EX–

09/144–SE / NR 2009:144.

[3] A. Brattkill, J. Cowan, J. Danielsson, P. Enstr¨om, M. Evensson, K. Kozmin, G. K˚allberg, A. Marklund, M. R¨onnkvist, J. Ohlson, P. Smirnov, and K. ˚ahsberg.

Camera and Laser Autonavigation Wheelchair. Project Report, Department of Computer Science and Electri- cal Engineering, Lule˚a University of Technology, jun 2001. Electronic Systems PROJECT 2001.

[4] M. Evenson, K. Kozmin, A. Marklund, and K. ˚Ahsberg.

MICA - RULLSTOLEN, feb 2002. Diverse nyttig infor- mation om rullstolen, efter projekt CLAW och MICA1.

[5] K. Krenkel, M. Landais, D. Lehmann, J. Lundkvist, J. Nyberg, D. Rosendahl, H. Stenberg, and B. Varain.

Laser Guided Wheel Chair. Project report, Department of Computer Science and Electrical Engineering, Lule˚a University of Technology, May 30, 2003. Project re- port from a project course in robotics and mecatronics SME107.

[6] S. R¨onnb¨ack. On a robotic Matlab Java testbed for mo- bile robots. Licentiate thesis, Lule˚a University of Tech- nology (LTU), Lule˚a, Sweden, oct 2004. ISSN 1402- 1757 / ISRN LTU-LIC–04/10–SE / NR 2004:10.

[7] S. R¨onnb¨ack. On Methods for Assistive Mobile Robots.

Doctoral thesis, Lule˚a University of Technology (LTU), Lule˚a, Sweden, 2006. ISSN 1402-1544 / ISRN LTU- DT–06/58–SE / NR 2006:58.

References

Related documents

Both Brazil and Sweden have made bilateral cooperation in areas of technology and innovation a top priority. It has been formalized in a series of agreements and made explicit

The increasing availability of data and attention to services has increased the understanding of the contribution of services to innovation and productivity in

Generella styrmedel kan ha varit mindre verksamma än man har trott De generella styrmedlen, till skillnad från de specifika styrmedlen, har kommit att användas i större

Parallellmarknader innebär dock inte en drivkraft för en grön omställning Ökad andel direktförsäljning räddar många lokala producenter och kan tyckas utgöra en drivkraft

Närmare 90 procent av de statliga medlen (intäkter och utgifter) för näringslivets klimatomställning går till generella styrmedel, det vill säga styrmedel som påverkar

I dag uppgår denna del av befolkningen till knappt 4 200 personer och år 2030 beräknas det finnas drygt 4 800 personer i Gällivare kommun som är 65 år eller äldre i

Detta projekt utvecklar policymixen för strategin Smart industri (Näringsdepartementet, 2016a). En av anledningarna till en stark avgränsning är att analysen bygger på djupa

DIN representerar Tyskland i ISO och CEN, och har en permanent plats i ISO:s råd. Det ger dem en bra position för att påverka strategiska frågor inom den internationella