19 #include <boost/thread.hpp> 26 size_t pos = name.find_last_of(
'/');
27 return name.substr(pos + 1);
30 int main(
int argc,
char** argv)
32 ros::init(argc, argv,
"velocity_smoother");
40 vel_smoother_.reset(
new VelocitySmoother(name));
41 if (vel_smoother_->init(nh_p))
48 ROS_ERROR_STREAM(
"Velocity Smoother: initialisation failed [" << name <<
"]");
58 vel_smoother_->shutdown();
59 worker_thread_->join();
const std::string & getUnresolvedNamespace() const
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
#define ROS_DEBUG_STREAM(args)
std::string unresolvedName(const std::string &name)
#define ROS_ERROR_STREAM(args)
ROSCPP_DECL void spinOnce()