Download Toward a Mobile User Interface for the Personal Mobility

Transcript
Chapter: Software Project
67
The final result has a blue circle for wheelchair, a yellow circle for the next
position and the laser scan data with red lines on the viewed part of the image according
to zoom value. With every odometry message received, the image viewed is updated
and wheelchair movement is visualized with laser scan.
4.2.2 Map Server Modification
a. General Information
In the default implementation of the map server, there is a service for detecting
the map requests and there are publisher topics for map metadata and occupancy data.
However, there is no service or method to load a new map while map server is running.
In order to change the map being published map server is supposed to be stopped and
started with the new YAML file path.
To fulfill the specifications of the application, a service is added to MapServer
class in main.cpp file. This service serves for updating the published map with a new
map while map server is running. The only modified file is main.cpp file. The new
implementation can be compiled by using catkin_make command after setting up the
proper development environment following the tutorials. Moreover, MapUpdate.srv file is
created and new classes to be used in the service callback are generated with compile.
In a similar way java classes are generated from the same MapUpdate.srv file as an
external library and included to android application.
MapUpdate.srv file content:
string path
--bool done