step_controller_node.cpp
Go to the documentation of this file.
2 
3 #include <vigir_generic_params/parameter_manager.h>
4 #include <vigir_pluginlib/plugin_manager.h>
5 
6 
7 
8 namespace vigir_step_control
9 {
11 {
12  step_controller_.reset(new StepController(nh));
13  step_controller_->initialize(nh, nh.param("auto_spin", true));
14 }
15 
17 {
18 }
19 } // namespace
20 
21 int main(int argc, char **argv)
22 {
23  ros::init(argc, argv, "vigir_step_controller");
24 
25  ros::NodeHandle nh;
26 
27  // ensure that node's services are set up in proper namespace
28  if (nh.getNamespace().size() <= 1)
29  nh = ros::NodeHandle("~");
30 
31  // init parameter and plugin manager
32  vigir_generic_params::ParameterManager::initialize(nh);
33  vigir_pluginlib::PluginManager::initialize(nh);
34 
35  vigir_step_control::StepControllerNode step_controller_node(nh);
36 
37  ros::spin();
38 
39  return 0;
40 }
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
bool param(const std::string &param_name, T &param_val, const T &default_val) const
const std::string & getNamespace() const
ROSCPP_DECL void spin()
int main(int argc, char **argv)


vigir_step_control
Author(s): Alexander Stumpf
autogenerated on Mon Jun 10 2019 15:44:47