31 #include <boost/scoped_ptr.hpp> 76 ROS_INFO_STREAM(
"Oem7MessageDecoderLib version: " << major <<
"." << minor <<
"." << build);
80 std::string decoder_dbg_file_name;
81 std::string receiver_dbg_file_name;
82 nh_.
getParam(
"oem7_receiver_log_file", receiver_dbg_file_name);
83 nh_.
getParam(
"oem7_decoder_log_file", decoder_dbg_file_name);
85 decoder_dbg_file_.
initialize( decoder_dbg_file_name);
86 receiver_dbg_file_.
initialize(receiver_dbg_file_name);
92 virtual bool read( boost::asio::mutable_buffer buf,
size_t& s)
94 bool ok = recvr_->
read(buf, s);
97 receiver_dbg_file_.
write(boost::asio::buffer_cast<unsigned char*>(buf), s);
118 if(decoder_->readMessage(msg))
122 decoder_dbg_file_.
write(msg->getMessageData(0), msg->getMessageDataLength());
130 ROS_WARN(
"Decoder: no more messages available.");
135 catch(std::exception
const& ex)
virtual bool read(boost::asio::mutable_buffer, size_t &)=0
Oem7DebugFile decoder_dbg_file_
boost::shared_ptr< novatel_oem7::Oem7MessageDecoderLibIf > decoder_
boost::shared_ptr< Oem7MessageDecoderLibIf > GetOem7MessageDecoder(Oem7MessageDecoderLibUserIf *)
virtual bool read(boost::asio::mutable_buffer buf, size_t &s)
virtual bool write(const unsigned char *buf, size_t len)
virtual void onNewMessage(boost::shared_ptr< const novatel_oem7::Oem7RawMessageIf >)=0
ROSCPP_DECL bool isShuttingDown()
virtual bool initialize(std::string &debug_file_name)
PLUGINLIB_EXPORT_CLASS(novatel_oem7_driver::Oem7ConfigNodelet, nodelet::Nodelet)
bool initialize(ros::NodeHandle &nh, Oem7ReceiverIf *recvr, Oem7MessageDecoderUserIf *user)
#define ROS_INFO_STREAM(args)
bool getParam(const std::string &key, std::string &s) const
#define ROS_ERROR_STREAM(args)
Oem7DebugFile receiver_dbg_file_
Oem7MessageDecoderUserIf * user_
void GetOem7MessageDecoderLibVersion(version_element_t &major, version_element_t &minor, version_element_t &build)