From d07b1d224f833b977f0311fa9637743df2a039ea Mon Sep 17 00:00:00 2001 From: Mohamed Abdelkader Date: Mon, 3 Jan 2022 10:00:28 +0300 Subject: [PATCH] Fix motor command topic name --- src/bldc_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bldc_controller.cpp b/src/bldc_controller.cpp index 9bbb2c0..3abfec3 100644 --- a/src/bldc_controller.cpp +++ b/src/bldc_controller.cpp @@ -31,7 +31,7 @@ namespace bldc_controller BldcController::BldcController(bldc_serial::BldcSerial *s) : serial(s), nh_("~") { - sub_cmd_ = nh_.subscribe("/bldc_driver_node/Command", 1, &BldcController::motorCommand, this); + sub_cmd_ = nh_.subscribe("motor_command", 1, &BldcController::motorCommand, this); timeout_timer_ = nh_.createTimer(ros::Duration(2), &BldcController::timeoutCallback, this); timeout_timer_.start(); }