Tetrapod Project
debug_utils.h
Go to the documentation of this file.
1 /*******************************************************************/
2 /* AUTHOR: Paal Arthur S. Thorseth */
3 /* ORGN: Dept of Eng Cybernetics, NTNU Trondheim */
4 /* FILE: debug_utils.h */
5 /* DATE: Apr 12, 2021 */
6 /* */
7 /* Copyright (C) 2021 Paal Arthur S. Thorseth, */
8 /* Adrian B. Ghansah */
9 /* */
10 /* This program is free software: you can redistribute it */
11 /* and/or modify it under the terms of the GNU General */
12 /* Public License as published by the Free Software Foundation, */
13 /* either version 3 of the License, or (at your option) any */
14 /* later version. */
15 /* */
16 /* This program is distributed in the hope that it will be useful, */
17 /* but WITHOUT ANY WARRANTY; without even the implied warranty */
18 /* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */
19 /* See the GNU General Public License for more details. */
20 /* */
21 /* You should have received a copy of the GNU General Public */
22 /* License along with this program. If not, see */
23 /* <https://www.gnu.org/licenses/>. */
24 /* */
25 /*******************************************************************/
26 
27 #pragma once
28 
29 // C++ Standard Libraries
30 #include <cmath>
31 
32 // ROS
33 #include "ros/ros.h"
34 
35 // ROS Package Libraries
36 #include <math_utils/angle_utils.h>
37 
38 // Eigen
39 #include <Eigen/Core>
40 
41 namespace debug_utils
42 {
46  void printBaseState(const Eigen::Matrix<double, 6, 1> &_base_state);
47 
51  void printBaseTwist(const Eigen::Matrix<double, 6, 1> &_base_twist);
52 
56  void printBaseAccel(const Eigen::Matrix<double, 6, 1> &_base_accel);
57 
61  void printJointState(const Eigen::Matrix<double, 12, 1> &_joint_state);
62 
66  void printJointVelocities(const Eigen::Matrix<double, 12, 1> &_joint_vel);
67 
71  void printJointAccelerations(const Eigen::Matrix<double, 12, 1> &_joint_vel);
72 
76  void printJointTorques(const Eigen::Matrix<double, 12, 1> &_joint_trq);
77 
81  void printGeneralizedCoordinates(const Eigen::Matrix<double, 18, 1> &_gen_coord);
82 
86  void printGeneralizedVelocities(const Eigen::Matrix<double, 18, 1> &_gen_vel);
87 
91  void printGeneralizedAccelerations(const Eigen::Matrix<double, 18, 1> &_gen_accel);
92 
96  void printFootstepPositions(const Eigen::Matrix<Eigen::Vector3d, 4, 1> &_f_pos);
97 
102  void printFootstepForces(const int* _contact_state,
103  const Eigen::VectorXd &_F_c);
104 
105 
106 } // namespace debug_utils
void printJointVelocities(const Eigen::Matrix< double, 12, 1 > &_joint_vel)
The printJointVelocities function prints given joint- velocities to ROS using print level INFO.
Definition: debug_utils.cpp:91
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.
Definition: debug_utils.cpp:72
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.
Definition: debug_utils.cpp:59
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.
Definition: debug_utils.cpp:46
void printBaseState(const Eigen::Matrix< double, 6, 1 > &_base_state)
The printBaseState function prints a given base- state to ROS using print level INFO.
Definition: debug_utils.cpp:33
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...