Skip to content

Commit

Permalink
log test
Browse files Browse the repository at this point in the history
  • Loading branch information
VincidaB committed Apr 26, 2024
1 parent d8c9269 commit e52249d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ class RpPicoComs
std::stringstream ss;
ss << "m " << val_1 << " " << val_2 << " " << val_3 << " " << val_4 << "\r";
send_msg(ss.str());
RCLCPP_INFO(rclcpp::get_logger("rppico_comms"), "Sent: %s", ss.str().c_str());
}
}

void set_pid_values(int k_p, int k_d, int k_i, int k_o)
{
Expand Down
7 changes: 7 additions & 0 deletions src/omnidirectional_controllers/src/odometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@

#include "omnidirectional_controllers/types.hpp"

//for the temporary log
#include <iostream>


namespace omnidirectional_controllers {

Odometry::Odometry() {}
Expand Down Expand Up @@ -74,6 +78,9 @@ void Odometry::update(const std::vector<double> & wheels_vel, double dt) {
}
this->dt_ = dt;
this->body_vel_ = robot_kinematics_.getBodyVelocity(wheels_vel);
//temporary log
std::cout << "body_vel_: " << body_vel_.vx << " " << body_vel_.vy << " " << body_vel_.omega << std::endl;

this->integrateVelocities();
}

Expand Down

0 comments on commit e52249d

Please sign in to comment.