Namespace pam_vicon¶
-
namespace pam_vicon¶
Typedefs
-
typedef vicon_transformer::FixedSizeViconFrame<NUM_SUBJECTS> FixedSizeViconFrame¶
FixedSizeViconFrame for the PAM Vicon setup.
-
typedef vicon_transformer::o80Driver<NUM_SUBJECTS, map_subject_name_to_index> o80Driver¶
o80Driver for the PAM Vicon setup
-
typedef vicon_transformer::o80Standalone<o80Driver> o80Standalone¶
o80Standalone for the PAM Vicon setup
Enums
-
enum Subjects¶
Enumeration of Vicon subjects.
The values of the enum entries are used as indices for arrays with subject data.
Values:
-
enumerator PING_BASE¶
-
enumerator BALL_LAUNCHER_FRONT¶
-
enumerator BALL_LAUNCHER_HEAD¶
-
enumerator TABLE_CORNER_1¶
-
enumerator TABLE_CORNER_2¶
-
enumerator TABLE_CORNER_3¶
-
enumerator TABLE_CORNER_4¶
-
enumerator LED_STICK¶
-
enumerator ROBOT1_BASE¶
-
enumerator ROBOT1_UPPER_ARM¶
-
enumerator ROBOT1_RACKET¶
-
enumerator PING_BASE
-
enumerator BALL_LAUNCHER_FRONT
-
enumerator BALL_LAUNCHER_HEAD
-
enumerator TABLE_CORNER_1
-
enumerator TABLE_CORNER_2
-
enumerator TABLE_CORNER_3
-
enumerator TABLE_CORNER_4
-
enumerator LED_STICK
-
enumerator ROBOT1_BASE
-
enumerator ROBOT1_UPPER_ARM
-
enumerator ROBOT1_RACKET
-
enumerator PING_BASE¶
-
enum Subjects
Enumeration of Vicon subjects.
The values of the enum entries are used as indices for arrays with subject data.
Values:
-
enumerator PING_BASE
-
enumerator BALL_LAUNCHER_FRONT
-
enumerator BALL_LAUNCHER_HEAD
-
enumerator TABLE_CORNER_1
-
enumerator TABLE_CORNER_2
-
enumerator TABLE_CORNER_3
-
enumerator TABLE_CORNER_4
-
enumerator LED_STICK
-
enumerator ROBOT1_BASE
-
enumerator ROBOT1_UPPER_ARM
-
enumerator ROBOT1_RACKET
-
enumerator PING_BASE
-
enumerator BALL_LAUNCHER_FRONT
-
enumerator BALL_LAUNCHER_HEAD
-
enumerator TABLE_CORNER_1
-
enumerator TABLE_CORNER_2
-
enumerator TABLE_CORNER_3
-
enumerator TABLE_CORNER_4
-
enumerator LED_STICK
-
enumerator ROBOT1_BASE
-
enumerator ROBOT1_UPPER_ARM
-
enumerator ROBOT1_RACKET
-
enumerator PING_BASE
Functions
-
inline size_t map_subject_name_to_index(const std::string &name)¶
Maps subject name to index.
- Parameters:
name – Name of the subject.
- Returns:
Index at which this subject is expected in subject arrays.
-
inline std::array<std::string, NUM_SUBJECTS> get_subject_names()¶
Get list of subject names.
The names are ordered according to Subjects, i.e.
.. code-block:: C++
auto names = get_subject_names(); names[Subjects::BALL_LAUNCHER]
gives the name of the ball launcher marker.
- Returns:
Array that maps subject index to its name.
Variables
-
constexpr std::size_t NUM_SUBJECTS = 11¶
Number of subjects in the PAM Vicon setup.
-
const std::map<std::string, size_t> _subject_name_to_index = {{"Pamy_ceiling", Subjects::PING_BASE}, {"Ballmaschine Frontmarker", Subjects::BALL_LAUNCHER_FRONT}, {"Abschusskopf Marker", Subjects::BALL_LAUNCHER_HEAD}, {"Eckteil 1", Subjects::TABLE_CORNER_1}, {"Eckteil 2", Subjects::TABLE_CORNER_2}, {"Eckteil 3", Subjects::TABLE_CORNER_3}, {"Eckteil 4", Subjects::TABLE_CORNER_4}, {"rll_led_stick", Subjects::LED_STICK}, {"pamy1_base", Subjects::ROBOT1_BASE}, {"pamy1_upper_arm", Subjects::ROBOT1_UPPER_ARM}, {"pamy1_racket", Subjects::ROBOT1_RACKET},}¶
Maps subject name to Subjects entry.
-
typedef vicon_transformer::FixedSizeViconFrame<NUM_SUBJECTS> FixedSizeViconFrame¶