We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3744edf commit 2317f17Copy full SHA for 2317f17
pio_workspace/src/actuator_main.cpp
@@ -1,6 +1,11 @@
1
#ifdef ACTUATOR_H
2
+
3
#include "actuator_main.h"
4
5
+#include <Arduino.h>
6
7
#include <Servo.h>
8
9
#include <ros.h>
10
#include <std_msgs/UInt16.h>
11
#include <std_msgs/Bool.h>
@@ -9,7 +14,7 @@
14
const int SERVO_PIN = 9;
15
16
// create node handle
12
-ros::NodeHandle nh("actuator-grabber");
17
+ros::NodeHandle nh;
13
18
19
// create grabber servo object
20
Servo grabberServo;
@@ -74,8 +79,4 @@ void servoSweep_CB(const std_msgs::Bool& msg) {
74
79
}
75
80
76
81
77
-// subscribe to topics
78
-ros::Subscriber<std_msgs::UInt16> grabberPositionSub("servo/position", &servoPosition_CB);
-ros::Subscriber<std_msgs::Bool> grabberSweepSub("servo/sweep", &servoSweep_CB);
-
-#endif
82
+#endif
0 commit comments