42 #include <rosgraph_msgs/Log.h> 48 : shutting_down_(false)
77 rosgraph_msgs::LogPtr msg(boost::make_shared<rosgraph_msgs::Log>());
82 msg->level = rosgraph_msgs::Log::DEBUG;
86 msg->level = rosgraph_msgs::Log::INFO;
90 msg->level = rosgraph_msgs::Log::WARN;
94 msg->level = rosgraph_msgs::Log::ERROR;
98 msg->level = rosgraph_msgs::Log::FATAL;
103 msg->function =
function;
144 V_Log::iterator it = local_queue.begin();
145 V_Log::iterator end = local_queue.end();
146 for (; it != end; ++it)
std::vector< rosgraph_msgs::LogPtr > V_Log
virtual void log(::ros::console::Level level, const char *str, const char *file, const char *function, int line)
void init(const std::string &_topic, uint32_t _queue_size, const SubscriberStatusCallback &_connect_cb=SubscriberStatusCallback(), const SubscriberStatusCallback &_disconnect_cb=SubscriberStatusCallback())
templated helper function for automatically filling out md5sum, datatype and message definition ...
boost::thread publish_thread_
const std::string & getLastError() const
bool latch
Whether or not this publication should "latch". A latching publication will automatically send out th...
ROSCPP_DECL const std::string & getName()
Returns the name of the current node.
ROSCPP_DECL std::string resolve(const std::string &name, bool remap=true)
Resolve a graph resource name into a fully qualified graph resource name.
Encapsulates all options available for creating a Publisher.
boost::mutex queue_mutex_
ROSCPP_DECL void getAdvertisedTopics(V_string &topics)
Get the list of topics advertised by this node.
ros::internal::condition_variable_monotonic queue_condition_
static const TopicManagerPtr & instance()