From 7623e96331599940fc81c6728865edbb4d3a620c Mon Sep 17 00:00:00 2001 From: Baudouin BELPAIRE Date: Sun, 27 Nov 2022 20:59:25 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'src/automatic.cpp'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/automatic.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/automatic.cpp b/src/automatic.cpp index 2b7b863..0cdb8fe 100644 --- a/src/automatic.cpp +++ b/src/automatic.cpp @@ -35,6 +35,7 @@ int main(int argc,char** argv){ ros::NodeHandle nh; ros::Publisher cmdPublisher = nh.advertise("cmd_vel",1); ros::Subscriber scanListener = nh.subscribe("scan",10,scanCallback); + ros::Subscriber batteryListener = nh.subscribe("battery_state",10,batteryCallback); ros::Rate loopRate(30); int runtime; int starttime=time(NULL);