Skip to content

zhast/GreenerWaze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GreenerWaze

A Waze-like map for EV owners that was developed for the programming class ECE297. It was built in C++ using the EZGL and GTK graphics libraries, with data from OpenStreetMap.

Credits

This repository is a fork from https://github.com/zakharykaplan/mapper which contains the dockerfile and virtualization support for running the map. Mapper was developed on the university computer enviornment and normally could not be run outisde of that. The forked repository sets up support for allowing any computer to run the map using docker.

The actual map itself is completely unique and was developed by myself along with a team of two others as part of a course project for ECE297.

Usage

In order to run the mapper executable, you will need to first build the Docker image from within the repository directory.

docker build -t mapper .

Before running, a bidirectional byte stream must be set-up to allow the GUI to run on your host machine. This could be done in the background using socat.

socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\" &

In order to connect the image to your host's window server, you must set the container's DISPLAY environment variable to the host's static IP address.1

Finally, use the following command (replacing $IP_ADDRESS) to run the image in a container.2

docker run -it --rm -e DISPLAY=$IP_ADDRESS:0 mapper

Support

  1. On macOS and Windows, host.docker.internal can be used as a substitute which Docker will resolve automatically. See more.
  2. On macOS, XQuartz must also be installed in order to host X11 windows. See more.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published