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:

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

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

Counter: 2525, today: 2, yesterday: 0

Attach file: fileSig_Joystick.sig 103 download [Information]

Front page   Edit Freeze Diff Backup Upload Copy Rename Reload   New List of pages Search Recent changes   Help   RSS of recent changes
Last-modified: 2014-02-07 (Fri) 14:49:32 (2726d)