23 #include <ignition/math/Pose3.hh> 29 #include "sdf/sdf_config.h" 35 inline namespace SDF_VERSION_NAMESPACE {
39 class AnimationPrivate;
42 class WaypointPrivate;
45 class TrajectoryPrivate;
87 public:
const std::string &Name()
const;
91 public:
void SetName(
const std::string &_name);
95 public:
const std::string &Filename()
const;
99 public:
void SetFilename(
const std::string &_filename);
103 public:
const std::string &FilePath()
const;
107 public:
void SetFilePath(
const std::string &_filePath);
111 public:
double Scale()
const;
115 public:
void SetScale(
double _scale);
119 public:
bool InterpolateX()
const;
123 public:
void SetInterpolateX(
bool _interpolateX);
127 public:
void CopyFrom(
const Animation &_animation);
130 private: AnimationPrivate *dataPtr =
nullptr;
170 public:
double Time()
const;
174 public:
void SetTime(
double _time);
178 public: ignition::math::Pose3d Pose()
const;
182 public:
void SetPose(
const ignition::math::Pose3d &_pose);
186 public:
void CopyFrom(
const Waypoint &_waypoint);
189 private: WaypointPrivate *dataPtr =
nullptr;
229 public: uint64_t Id()
const;
233 public:
void SetId(uint64_t _id);
237 public:
const std::string &Type()
const;
242 public:
void SetType(
const std::string &_type);
246 public:
double Tension()
const;
250 public:
void SetTension(
double _tension);
254 public: uint64_t WaypointCount()
const;
261 public:
const Waypoint *WaypointByIndex(uint64_t _index)
const;
265 public:
void AddWaypoint(
const Waypoint &_waypoint);
269 public:
void CopyFrom(
const Trajectory &_trajectory);
272 private: TrajectoryPrivate *dataPtr =
nullptr;
301 public:
Actor &operator=(
const Actor &_actor);
305 public:
void CopyFrom(
const Actor &_actor);
317 public: std::string &Name()
const;
321 public:
void SetName(
const std::string &_name);
328 public:
const ignition::math::Pose3d &RawPose()
const;
333 public:
void SetRawPose(
const ignition::math::Pose3d &_pose);
339 public:
const std::string &PoseRelativeTo()
const;
345 public:
void SetPoseRelativeTo(
const std::string &_frame);
349 public:
const std::string &FilePath()
const;
353 public:
void SetFilePath(
const std::string &_filePath);
357 public:
const std::string &SkinFilename()
const;
361 public:
void SetSkinFilename(std::string _skinFilename);
365 public:
double SkinScale()
const;
369 public:
void SetSkinScale(
double _skinScale);
373 public: uint64_t AnimationCount()
const;
380 public:
const Animation *AnimationByIndex(uint64_t _index)
const;
385 public:
bool AnimationNameExists(
const std::string &_name)
const;
389 public:
void AddAnimation(
const Animation &_anim);
393 public:
bool ScriptLoop()
const;
398 public:
void SetScriptLoop(
bool _scriptLoop);
402 public:
double ScriptDelayStart()
const;
406 public:
void SetScriptDelayStart(
double _scriptDelayStart);
410 public:
bool ScriptAutoStart()
const;
415 public:
void SetScriptAutoStart(
bool _scriptAutoStart);
419 public: uint64_t TrajectoryCount()
const;
426 public:
const Trajectory *TrajectoryByIndex(uint64_t _index)
const;
431 public:
bool TrajectoryIdExists(uint64_t _id)
const;
435 public:
void AddTrajectory(
const Trajectory &_traj);
439 public: uint64_t LinkCount()
const;
446 public:
const Link *LinkByIndex(uint64_t _index)
const;
451 public:
bool LinkNameExists(
const std::string &_name)
const;
455 public: uint64_t JointCount()
const;
462 public:
const Joint *JointByIndex(uint64_t _index)
const;
467 public:
bool JointNameExists(
const std::string &_name)
const;
476 private: ActorPrivate *dataPtr =
nullptr;
Provides a description of an actor.
Definition: Actor.hh:277
class SDFORMAT_VISIBLE Element
Definition: Element.hh:49
Waypoint for Trajectory.
Definition: Actor.hh:134
Animation in Actor.
Definition: Actor.hh:51
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:48
A Time class, can be used to hold wall- or sim-time.
Definition: Types.hh:159
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:53
namespace for Simulation Description Format parser
Definition: Actor.hh:32
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:95
Trajectory for Animation.
Definition: Actor.hh:193