3 #ifndef _GAZEBO_GAIT_RECORDER_HH_
4 #define _GAZEBO_GAIT_RECORDER_HH_
6 #include "WorldServer.hh"
7 #include "gait_recorder_message.pb.h"
10 #define INTIALCONFIGURATION "InitialConfiguration"
15 typedef const boost::shared_ptr
16 <
const gait_recorder_message::msgs::GaitRecMessage> GaitRecMessagePtr;
35 PoseRecord(
double joint0,
double joint1,
double joint2,
double joint3,
45 void UpdateJoints(
double joint0,
double joint1,
double joint2,
double joint3,
64 Frame(
string frame_name);
86 vector<PoseRecord> modulePositions;
102 sdf::ElementPtr _sdf);
123 void GaitRecorderMessageDecoding(GaitRecMessagePtr &msg);
126 vector<Frame> frames;
128 transport::SubscriberPtr gaitInfoSub;
double JointAngles[4]
Joint angles of the module.
Definition: GaitRecorder.hh:49
gazebo name space
Definition: system_gui.cc:41
Frame(string frame_name)
Constructor.
Definition: GaitRecorder.cc:33
string frameName
Section name string.
Definition: GaitRecorder.hh:83
PoseRecord()
Constructor.
Definition: GaitRecorder.cc:8
void RecordCurrentPose(Frame ¤t_frame)
Record the current position of all modules.
Definition: GaitRecorder.cc:222
Definition: WorldServer.hh:80
The class that will be used to record the position information of a module.
Definition: GaitRecorder.hh:22
void ExtraWorkWhenModelInserted(CommandMessagePtr &msg)
Callback after a model inserted.
Definition: GaitRecorder.cc:67
~GaitRecorder()
Deconstructor.
Definition: GaitRecorder.cc:53
math::Pose Position
Global position of the module.
Definition: GaitRecorder.hh:51
unsigned int GetPositionSize(void) const
Get the size of position records.
Definition: GaitRecorder.cc:41
PoseRecord GetPosition(unsigned int idx) const
Get a position record with a position index.
Definition: GaitRecorder.cc:45
void ExtraInitializationInLoad(physics::WorldPtr _parent, sdf::ElementPtr _sdf)
The function that perform extra initialization.
Definition: GaitRecorder.cc:54
This clase used to store the initial position information of a section.
Definition: GaitRecorder.hh:57
Gait recorder python GUI application.
Definition: GaitRecorder.py:1
void AddAPosition(PoseRecord pos_rec)
Add a position record of a module.
Definition: GaitRecorder.cc:37
void SetPose(const Frame *a_frame)
Set the position to the initial state of a section.
Definition: GaitRecorder.cc:238
void UpdateJoints(double joint0, double joint1, double joint2, double joint3, math::Pose pos)
Update the current record.
Definition: GaitRecorder.cc:23
GaitRecorder()
Constructor.
Definition: GaitRecorder.cc:50