Skip to content

Commit

Permalink
Removed logging from cmd_vel handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
samyarsadat committed Jul 26, 2024
1 parent 47bf0cb commit 47fe73c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source Code/pico_ws/src/pico_a/Pico_A.c++
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,10 @@ void cmd_vel_call(const void *msgin)
{
const geometry_msgs__msg__Twist *msg = (const geometry_msgs__msg__Twist *) msgin;

char buffer[60];
// This topic is published to very frequently. There should not be any logging.
/*char buffer[60];
snprintf(buffer, sizeof(buffer), "Received cmd_vel: [lin: %.2fm/s, ang: %.2frad/s]", msg->linear.x, msg->angular.z);
write_log(buffer, LOG_LVL_INFO, FUNCNAME_ONLY);
write_log(buffer, LOG_LVL_INFO, FUNCNAME_ONLY);*/

float angular = msg->angular.z; // rad/s
float linear = msg->linear.x; // m/s
Expand Down

0 comments on commit 47fe73c

Please sign in to comment.