packml_stacklight.h
Go to the documentation of this file.
1 /*
2  * Software License Agreement (Apache License)
3  *
4  * Copyright (c) 2019 Joshua Hatzenbuehler
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 
19 #ifndef PACKML_STACKLIGHT_H
20 #define PACKML_STACKLIGHT_H
21 
22 #include <ros/ros.h>
23 #include <packml_msgs/Status.h>
24 #include <packml_msgs/State.h>
25 #include <std_msgs/UInt8.h>
27 
28 namespace packml_stacklight
29 {
31 {
32 protected:
36  std::map<std::string, ros::Publisher> pub_map_;
37 
38 private:
39  packml_msgs::State current_state_;
42 
43 public:
46 
47  void spin();
48  void spinOnce();
49 
50 private:
51  void callBackStatus(const packml_msgs::StatusConstPtr& msg);
52  void processCurState();
53  void setDoubleParam(std::string param_name, double& default_val);
54  void setBoolParam(std::string param_name, bool& default_val);
55 };
56 } // namespace packml_stacklight
57 
58 #endif // PACKML_STACKLIGHT_H
void setBoolParam(std::string param_name, bool &default_val)
PackmlStacklight(ros::NodeHandle nh, ros::NodeHandle pn)
std::map< std::string, ros::Publisher > pub_map_
void setDoubleParam(std::string param_name, double &default_val)
void callBackStatus(const packml_msgs::StatusConstPtr &msg)


packml_stacklight
Author(s): Joshua Hatzenbuehler
autogenerated on Fri Jul 12 2019 03:31:01