33 T
get(
const std::string & name)
const
35 if (!
n_.hasParam(name))
37 ROS_INFO_STREAM(
"No parameter named " << name);
40 n_.getParamCached(name,result);
48 prefix_ = prefix +
"traffic_light_sim/";
53 static const std::string name =
prefix_ +
"r";
54 return get<int>(name);
58 static const std::string name =
prefix_ +
"g";
59 return get<int>(name);
63 static const std::string name =
prefix_ +
"ry";
64 return get<int>(name);
68 static const std::string name =
prefix_ +
"y";
69 return get<int>(name);
73 static const std::string name =
prefix_ +
"start_state";
74 return get<std::string>(name);
78 static const std::string name =
prefix_ +
"probe";
79 return get<bool>(name);
Definition: p_traffic_light_sim.h:27
T get(const std::string &name) const
Definition: p_traffic_light_sim.h:33
virtual int getGreenDuration() const override
Definition: p_traffic_light_sim.h:56
virtual int getYellowDuration() const override
Definition: p_traffic_light_sim.h:66
ros::NodeHandle n_
Definition: p_traffic_light_sim.h:29
virtual std::string getStartState() const override
Definition: p_traffic_light_sim.h:71
virtual int getRedDuration() const override
Definition: p_traffic_light_sim.h:51
virtual int getRedYellowDuration() const override
Definition: p_traffic_light_sim.h:61
PTrafficLightSim(ros::NodeHandle n, std::string prefix)
Definition: p_traffic_light_sim.h:46
virtual bool getIsProbeMode() const override
Definition: p_traffic_light_sim.h:76
std::string prefix_
Definition: p_traffic_light_sim.h:30
abstract class containing parameters to configure aspects of the map provider
Definition: ap_traffic_light_sim.h:27
Definition: areaofeffectconverter.h:20