From 13e2136def563ca7e6f6d53d65e9ce493d577767 Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Fri, 13 Dec 2024 17:18:23 +0900 Subject: [PATCH] [jsk_robot_startup/quadruped_joystick_teleop] use oy_teleop_ only when publish_cmd_vel_ is true --- .../jsk_robot_startup/src/quadruped_joystick_teleop.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jsk_robot_common/jsk_robot_startup/src/quadruped_joystick_teleop.cpp b/jsk_robot_common/jsk_robot_startup/src/quadruped_joystick_teleop.cpp index 166d5db769..dc5def37e0 100644 --- a/jsk_robot_common/jsk_robot_startup/src/quadruped_joystick_teleop.cpp +++ b/jsk_robot_common/jsk_robot_startup/src/quadruped_joystick_teleop.cpp @@ -523,7 +523,9 @@ class TeleopManager } // TwistTeleop - joy_teleop_->joyCallback(msg); + if ( publish_cmd_vel_ ) { + joy_teleop_->joyCallback(msg); + } } bool isPublishCmdVel() {