Class Motion¶
- Defined in File motion.hpp
Class Documentation¶
-
class
Motion
¶ Public Functions
-
Motion
(const std::unordered_set<std::string> &joint_names, const std::unordered_map<std::string, EffectorType> &effector_types, const std::string &model = "")¶
-
~Motion
()¶
-
bool
is_valid
() const¶
-
FrameRange
frames
(double fps) const¶
-
bool
is_in_range_at
(double t) const¶
-
void
dump
(std::ostream&) const¶
-
void
dump_json
(std::ostream&) const¶
-
std::string
dump_json_string
() const¶
-
std::string
model_id
() const¶
-
void
set_model_id
(std::string const&)¶
-
void
delete_keyframe
(double t, bool loose = true)¶
-
KeyframeRange
keyframes
()¶
-
ConstKeyframeRange
keyframes
() const¶
-
ConstKeyframeRange
const_keyframes
() const¶
-
void
clear_keyframes
()¶
-
EffectorType
effector_type
(const std::string&) const¶
-
EffectorWeight
effector_weight
(const std::string&) const¶
-
void
set_effector_weight
(const std::string&, EffectorWeight)¶
-
double
length
() const¶
-
KeyRange<std::string>
joint_names
() const¶
-
KeyRange<std::string>
effector_names
() const¶
Public Static Functions
-
class
Impl
¶ Public Functions
-
Impl
(const std::unordered_set<std::string> &joints, const std::unordered_map<std::string, EffectorType> &effectors, const std::string &model = "")¶
-
void
add_initial_frame
()¶
-
proto::Motion
to_protobuf
() const¶
-
bool
is_valid
() const¶
Public Members
-
std::string
model_id
¶
-
const std::unordered_set<std::string>
joint_names
¶
-
const std::unordered_map<std::string, EffectorType>
effector_types
¶
-
std::unordered_map<std::string, EffectorWeight>
effector_weights
¶
-
const std::size_t
joints_hash
¶
-
const std::size_t
effectors_hash
¶
-
-