We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b2cc12 commit 40b3710Copy full SHA for 40b3710
rapp_hazard_detection/src/hazard_detection.cpp
@@ -29,6 +29,16 @@ HazardDetection::HazardDetection(void)
29
// Creating the service server concerning the light_check functionality
30
lightCheckService_ = nh_.advertiseService(lightCheckTopic_,
31
&HazardDetection::lightCheckCallback, this);
32
+
33
+ // Fetching the service topic URI parameter
34
+ if(!nh_.getParam("/rapp_hazard_detection_door_check_topic", doorCheckTopic_))
35
+ {
36
+ ROS_ERROR("Door check topic param does not exist");
37
+ }
38
39
+ // Creating the service server concerning the door_check functionality
40
+ doorCheckService_ = nh_.advertiseService(doorCheckTopic_,
41
+ &HazardDetection::doorCheckCallback, this);
42
}
43
44
bool HazardDetection::lightCheckCallback(
0 commit comments