Skip to content
Snippets Groups Projects
Commit 22f4ede9 authored by Thomas Moulard's avatar Thomas Moulard
Browse files

Add missing files.

parent 0a8f9806
No related branches found
No related tags found
No related merge requests found
#include <boost/make_shared.hpp>
#include <boost/shared_ptr.hpp>
#include "ros_init.hh"
namespace dynamicgraph
{
boost::shared_ptr<ros::NodeHandle> nodeHandle;
ros::NodeHandle& rosInit()
{
if (!nodeHandle)
{
int argc = 1;
char* arg0 = strdup("dynamic_graph_bridge");
char* argv[] = {arg0, 0};
ros::init(argc, argv, "dynamic_graph_bridge");
free (arg0);
nodeHandle = boost::make_shared<ros::NodeHandle> ("dynamic_graph");
}
return *nodeHandle;
}
} // end of namespace dynamicgraph.
#ifndef ROS_INIT_HH
# define ROS_INIT_HH
# include <ros/ros.h>
namespace dynamicgraph
{
ros::NodeHandle& rosInit();
} // end of namespace dynamicgraph.
#endif //! ROS_INIT_HH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment