Up:Tutorial?     Previous:Controlling agent with Kinect     Next:Speech recognition using Julius


The aim of this tutorial is to introduce how to control a SIGVerse robot using Joystick. The example below allows to control a robot in 4 directions: moving forward, backward, turning left and right.

Installation of the joystick

Download and install Microsoft directx sdk

Controller

The controller receives data from the joystick service as messages using the joystick, sets the corresponding velocity then sends the command to the robot.

joystick.cpp:

Service

The service receives data from the joystick, for each button of the joystick corresponds an action, the allowed actions are: move forward, move backward, turn left and turn right, when a button is pressed, the appropriate message is sent to the controller to move the robot.

Joystick_Service.cpp

To download the plugin:

fileSig_Joystick.sig

World file

joystickWorld.xml

Download the project

To download the project from GIT repository, use the following link:

git@socio4.iir.nii.ac.jp:~/SigverseGitServer/unstable/usersContribution/tafifet/joystick_service.git

Tutorial?


Front page   New List of pages Search Recent changes   Help   RSS of recent changes