Skit class to decode aib format.
More...
#include <MASkit.hpp>
Skit class to decode aib format.
Definition at line 44 of file MASkit.hpp.
MASkit::MASkit |
( |
const std::string & |
name, |
|
|
MA::MotionSkitSPtr |
motion, |
|
|
MA::LedSkitSPtr |
led, |
|
|
MC::BinaryDataSPtr |
sound |
|
) |
| |
Create a skit from raw data.
- Parameters
-
name | Skit name |
motion | Motion skit |
led | Led skit |
sound | Sound skit |
Definition at line 60 of file MASkit.cpp.
MA::SkitSPtr MASkit::CloneMirrored |
( |
const std::string & |
mirrored_name | ) |
|
Creates a new skit with mirrored leg joint trajectories between left and right sides.
- Parameters
-
mirrored_name | New name for the mirrored skit |
- Returns
- New skit if the current skit has motions otherwise empty shared pointer.
Definition at line 147 of file MASkit.cpp.
Load a skit from binary data.
- Parameters
-
- Returns
- Decoded skit if it is successful otherwise NULL.
Definition at line 203 of file MASkit.cpp.
Encode motion data (mtn) to aib format.
- Parameters
-
- Returns
- Encoded skit data if it is successful otherwise NULL.
Definition at line 165 of file MASkit.cpp.
int MASkit::GetAudioDuration |
( |
| ) |
const |
Get the audio duration.
- Returns
- Audio duration in the skit (in msec)
Definition at line 79 of file MASkit.cpp.
int MASkit::GetAudioStart |
( |
| ) |
const |
Get the audio effect start time.
- Returns
- Start time in msec otherwise -1.
Definition at line 73 of file MASkit.cpp.
int MASkit::GetAudioStartFromSkitterInfo |
( |
const MCBinaryData & |
binary_data | ) |
|
|
staticprivate |
Get the audio effect start from Skitter info format.
- Parameters
-
- Returns
- Decoded audio effect start in msec
Definition at line 303 of file MASkit.cpp.
int MASkit::GetDuration |
( |
| ) |
const |
Get the skit duration.
- Returns
- Skit duration (in msec)
Definition at line 85 of file MASkit.cpp.
MA::LedSkitSPtr MASkit::GetLedSkit |
( |
| ) |
|
Get the LED skit.
- Returns
- LED skit otherwise empty shared pointer.
Definition at line 135 of file MASkit.cpp.
MA::MotionSkitSPtr MASkit::GetMotionSkit |
( |
| ) |
|
Get the motion skit.
- Returns
- Motion skit otherwise empty shared pointer.
Definition at line 129 of file MASkit.cpp.
std::string MASkit::GetName |
( |
| ) |
const |
Get the skit name.
- Returns
- Skit name
Definition at line 67 of file MASkit.cpp.
MC::BinaryDataSPtr MASkit::GetSoundData |
( |
| ) |
|
Get the sound data.
- Returns
- Sound data
Definition at line 141 of file MASkit.cpp.
The documentation for this class was generated from the following files:
- /home/kecsap/Downloads/00/aiboplus/aiboplus/mindaibo/src/types/skits/MASkit.hpp
- /home/kecsap/Downloads/00/aiboplus/aiboplus/mindaibo/src/types/skits/MASkit.cpp