35 ROS_INFO_STREAM(
"\n --------------- Base State --------------- ");
36 ROS_INFO_STREAM(
"x: \t" << _base_state(0));
37 ROS_INFO_STREAM(
"y: \t" << _base_state(1));
38 ROS_INFO_STREAM(
"z: \t" << _base_state(2));
39 ROS_INFO_STREAM(
"roll: \t" << _base_state(3));
40 ROS_INFO_STREAM(
"pitch: \t" << _base_state(4));
41 ROS_INFO_STREAM(
"yaw: \t" << _base_state(5));
42 ROS_INFO_STREAM(
" ------------------------------------------ ");
48 ROS_INFO_STREAM(
"\n --------------- Base Twist --------------- ");
49 ROS_INFO_STREAM(
"x_vel: \t" << _base_twist(0));
50 ROS_INFO_STREAM(
"y_vel: \t" << _base_twist(1));
51 ROS_INFO_STREAM(
"z_vel: \t" << _base_twist(2));
52 ROS_INFO_STREAM(
"roll_rate: \t" << _base_twist(3));
53 ROS_INFO_STREAM(
"pitch_rate: \t" << _base_twist(4));
54 ROS_INFO_STREAM(
"yaw_rate: \t" << _base_twist(5));
55 ROS_INFO_STREAM(
" ------------------------------------------ ");
61 ROS_INFO_STREAM(
"\n --------------- Base Accel --------------- ");
62 ROS_INFO_STREAM(
"x_accel: \t" << _base_accel(0));
63 ROS_INFO_STREAM(
"y_accel: \t" << _base_accel(1));
64 ROS_INFO_STREAM(
"z_accel: \t" << _base_accel(2));
65 ROS_INFO_STREAM(
"roll_accel: \t" << _base_accel(3));
66 ROS_INFO_STREAM(
"pitch_accel: \t" << _base_accel(4));
67 ROS_INFO_STREAM(
"yaw_accel: \t" << _base_accel(5));
68 ROS_INFO_STREAM(
" ------------------------------------------ ");
74 ROS_INFO_STREAM(
"\n ---------- Joint State [deg] ----------- ");
87 ROS_INFO_STREAM(
" ------------------------------------------ ");
93 ROS_INFO_STREAM(
"\n ------ Joint Velocites [deg/s] --------- ");
106 ROS_INFO_STREAM(
" ------------------------------------------ ");
112 ROS_INFO_STREAM(
"\n ------ Joint Accelerations [deg/s^2] --------- ");
125 ROS_INFO_STREAM(
" ------------------------------------------ ");
131 ROS_INFO_STREAM(
"\n ------ Joint Torques [Nm] --------- ");
132 ROS_INFO_STREAM(
"fl,hy: \t" << _joint_trq(0));
133 ROS_INFO_STREAM(
"fl,hp: \t" << _joint_trq(1));
134 ROS_INFO_STREAM(
"fl,kp: \t" << _joint_trq(2));
135 ROS_INFO_STREAM(
"fr,hy: \t" << _joint_trq(3));
136 ROS_INFO_STREAM(
"fr,hp: \t" << _joint_trq(4));
137 ROS_INFO_STREAM(
"fr,kp: \t" << _joint_trq(5));
138 ROS_INFO_STREAM(
"rl,hy: \t" << _joint_trq(6));
139 ROS_INFO_STREAM(
"rl,hp: \t" << _joint_trq(7));
140 ROS_INFO_STREAM(
"rl,kp: \t" << _joint_trq(8));
141 ROS_INFO_STREAM(
"rr,hy: \t" << _joint_trq(9));
142 ROS_INFO_STREAM(
"rr,hp: \t" << _joint_trq(10));
143 ROS_INFO_STREAM(
"rr,kp: \t" << _joint_trq(11));
144 ROS_INFO_STREAM(
" ------------------------------------------ ");
171 ROS_INFO_STREAM(
"\n --------- Footstep Positions ------------- ");
172 ROS_INFO_STREAM(
"****front left****");
173 ROS_INFO_STREAM(
"x: " << _f_pos(0)(0));
174 ROS_INFO_STREAM(
"y: " << _f_pos(0)(1));
175 ROS_INFO_STREAM(
"z: " << _f_pos(0)(2));
176 ROS_INFO_STREAM(
"*******************");
177 ROS_INFO_STREAM(
"****front right****");
178 ROS_INFO_STREAM(
"x: " << _f_pos(1)(0));
179 ROS_INFO_STREAM(
"y: " << _f_pos(1)(1));
180 ROS_INFO_STREAM(
"z: " << _f_pos(1)(2));
181 ROS_INFO_STREAM(
"*******************");
182 ROS_INFO_STREAM(
"****rear left****");
183 ROS_INFO_STREAM(
"x: " << _f_pos(2)(0));
184 ROS_INFO_STREAM(
"y: " << _f_pos(2)(1));
185 ROS_INFO_STREAM(
"z: " << _f_pos(2)(2));
186 ROS_INFO_STREAM(
"******************");
187 ROS_INFO_STREAM(
"****rear right****");
188 ROS_INFO_STREAM(
"x: " << _f_pos(3)(0));
189 ROS_INFO_STREAM(
"y: " << _f_pos(3)(1));
190 ROS_INFO_STREAM(
"z: " << _f_pos(3)(2));
191 ROS_INFO_STREAM(
"******************");
192 ROS_INFO_STREAM(
" ------------------------------------------ ");
197 const Eigen::VectorXd &_F_c)
202 ROS_INFO_STREAM(
"\n --------- Footstep Forces ------------- ");
204 if (_contact_state[0])
206 ROS_INFO_STREAM(
"****front left****");
207 ROS_INFO_STREAM(
"x: " << _F_c(i));
208 ROS_INFO_STREAM(
"y: " << _F_c(i+1));
209 ROS_INFO_STREAM(
"z: " << _F_c(i+2));
210 ROS_INFO_STREAM(
"*******************");
216 if (_contact_state[1])
218 ROS_INFO_STREAM(
"****front right****");
219 ROS_INFO_STREAM(
"x: " << _F_c(i));
220 ROS_INFO_STREAM(
"y: " << _F_c(i+1));
221 ROS_INFO_STREAM(
"z: " << _F_c(i+2));
222 ROS_INFO_STREAM(
"*******************");
228 if (_contact_state[2])
230 ROS_INFO_STREAM(
"****rear left****");
231 ROS_INFO_STREAM(
"x: " << _F_c(i));
232 ROS_INFO_STREAM(
"y: " << _F_c(i+1));
233 ROS_INFO_STREAM(
"z: " << _F_c(i+2));
234 ROS_INFO_STREAM(
"*******************");
240 if (_contact_state[3])
242 ROS_INFO_STREAM(
"****rear right****");
243 ROS_INFO_STREAM(
"x: " << _F_c(i));
244 ROS_INFO_STREAM(
"y: " << _F_c(i+1));
245 ROS_INFO_STREAM(
"z: " << _F_c(i+2));
246 ROS_INFO_STREAM(
"*******************");
void printJointVelocities(const Eigen::Matrix< double, 12, 1 > &_joint_vel)
The printJointVelocities function prints given joint- velocities to ROS using print level INFO.
void printJointAccelerations(const Eigen::Matrix< double, 12, 1 > &_joint_vel)
The printJointAccelerations function prints given joint- accelerations to ROS using print level INFO.
void printJointState(const Eigen::Matrix< double, 12, 1 > &_joint_state)
The printJointState function prints a given joint- state to ROS using print level INFO.
void printGeneralizedAccelerations(const Eigen::Matrix< double, 18, 1 > &_gen_accel)
The printGeneralizedAccelerations function prints a given set of generalized accelerations to ROS usi...
void printGeneralizedCoordinates(const Eigen::Matrix< double, 18, 1 > &_gen_coord)
The printGeneralizedCoordinates function prints a given set of generalized coordinates to ROS using p...
void printJointTorques(const Eigen::Matrix< double, 12, 1 > &_joint_trq)
The printJointTorques function prints given joint- torques to ROS using print level INFO.
void printBaseAccel(const Eigen::Matrix< double, 6, 1 > &_base_accel)
The printBaseAccel function prints a given base- accel to ROS using print level INFO.
void printFootstepPositions(const Eigen::Matrix< Eigen::Vector3d, 4, 1 > &_f_pos)
The printFootstepPositions function prints a given set of footstep positions to ROS using print level...
void printBaseTwist(const Eigen::Matrix< double, 6, 1 > &_base_twist)
The printBaseTwist function prints a given base- twist to ROS using print level INFO.
void printBaseState(const Eigen::Matrix< double, 6, 1 > &_base_state)
The printBaseState function prints a given base- state to ROS using print level INFO.
void printGeneralizedVelocities(const Eigen::Matrix< double, 18, 1 > &_gen_vel)
The printGeneralizedVelocities function prints a given set of generalized velocities to ROS using pri...
void printFootstepForces(const int *_contact_state, const Eigen::VectorXd &_F_c)
The printFootstepPositions function prints a given set of footstep forces to ROS using print level IN...
static constexpr double ONE_DIV_TWO_PI
Define 1/2PI.