[Rock-dev] Cleanup the RawCommand datatype of controldev
Matthias Goldhoorn
matthias.goldhoorn at dfki.de
Tue Mar 26 11:26:53 CET 2013
The "RawCommand" is not really an raw command,
i would suggest the following new structure and push the changes this
evening (means you have to adapt your code):
struct RawCommand{
enum Axis{
RX=0,
RY,
RZ,
TX,
TY,
TZ
};
std::string deviceIdentifier; //some device identifier
base::time time; //timestamp
// Index 1: num-of input axis, //index 2: dimensions of this axis
//If you have an gamepand which has 2 2Dknops you have an [2][2]
size'd array
// for an 3D Mouse you could have [1][6]
std::vector<std::vector<Axis> > axisValue;
std::vector<bool> buttonValue; //Three State switches are handles
as two
}
Since we are having multiple input devies that are "quite" different:
Graupner MC-20
Normal Joystick
Gamepads
SteeringWheel
3D-Spacemouse
This datatype will cover all of them..., the handling can later be done
in some "converter" Tasks...
some vetos? (Add an new "ReallyRawJoystickCommand? ) -1
Greetings,
Matthias
--
Dipl.-Inf. Matthias Goldhoorn
Space and Underwater Robotic
Universität Bremen
FB 3 - Mathematik und Informatik
AG Robotik
Robert-Hooke-Straße 5
28359 Bremen, Germany
Tel.: +49 421 178 45-4193
Zentrale: +49 421 178 45-6550
Fax: +49 421 178 45-4150
E-Mail: matthias.goldhoorn at uni-bremen.de
Weitere Informationen: http://www.informatik.uni-bremen.de/robotik
More information about the Rock-dev
mailing list