Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Microservice to interface with gamepads such as PS3 or PS4 controllers for OpenDLV.

License

Notifications You must be signed in to change notification settings

chalmers-revere/opendlv-device-gamepad

Repository files navigation

Moved to https://git.opendlv.org.

OpenDLV Microservice to interface with a gamepad such as a PS3 or PS4 controller

This repository provides source code to interface with a gamepad such as a PS3 or PS4 controller to broadcast ActuationRequest messages.

Build Status License: GPLv3

Table of Contents

Dependencies

You need a C++14-compliant compiler to compile this project. The following dependency is shipped as part of the source distribution:

Usage

This microservice is created automatically on changes to this repository via Docker's public registry for:

To run this microservice using our pre-built Docker multi-arch images to open a PS3 Controller, simply start it as follows:

docker run --rm -ti --init --net=host --device /dev/input/js0 chalmersrevere/opendlv-device-gamepad-multi:v0.0.10 --device=/dev/input/js0 --axis_leftright=0 --axis_updown=3 --freq=100 --acc_min=0 --acc_max=50 --dec_min=0 --dec_max=-10 --steering_min=-10 --steering_max=10 --steering_max_rate=5.0 --cid=111 --verbose

To run this microservice using our pre-built Docker multi-arch images to open a PS4 Controller, simply start it as follows:

docker run --rm -ti --init --net=host --device /dev/input/js0 chalmersrevere/opendlv-device-gamepad-multi:v0.0.10 --device=/dev/input/js0 --axis_leftright=0 --axis_updown=4 --freq=100 --acc_min=0 --acc_max=50 --dec_min=0 --dec_max=-10 --steering_min=-10 --steering_max=10 --steering_max_rate=5.0 --cid=111 --verbose

Build from sources on the example of Ubuntu 16.04 LTS

To build this software, you need cmake, C++14 or newer, libx11-dev, and make. Having these preconditions, just run cmake and make as follows:

mkdir build && cd build
cmake -D CMAKE_BUILD_TYPE=Release ..
make && make test && make install

License

  • This project is released under the terms of the GNU GPLv3 License

About

Microservice to interface with gamepads such as PS3 or PS4 controllers for OpenDLV.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •