mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 01:50:46 +02:00
moved bin_parser to comm and use it in URPackage::parseWith
This commit is contained in:
@@ -31,6 +31,8 @@
|
|||||||
|
|
||||||
namespace ur_driver
|
namespace ur_driver
|
||||||
{
|
{
|
||||||
|
namespace comm
|
||||||
|
{
|
||||||
class BinParser
|
class BinParser
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
@@ -203,4 +205,6 @@ public:
|
|||||||
LOG_DEBUG("BinParser: %p - %p (%zu bytes)", buf_pos_, buf_end_, buf_end_ - buf_pos_);
|
LOG_DEBUG("BinParser: %p - %p (%zu bytes)", buf_pos_, buf_end_, buf_end_ - buf_pos_);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace comm
|
||||||
} // namespace ur_driver
|
} // namespace ur_driver
|
||||||
@@ -27,6 +27,8 @@
|
|||||||
#ifndef UR_RTDE_DRIVER_PACKAGE_H_INCLUDED
|
#ifndef UR_RTDE_DRIVER_PACKAGE_H_INCLUDED
|
||||||
#define UR_RTDE_DRIVER_PACKAGE_H_INCLUDED
|
#define UR_RTDE_DRIVER_PACKAGE_H_INCLUDED
|
||||||
|
|
||||||
|
#include "ur_rtde_driver/comm/bin_parser.h"
|
||||||
|
|
||||||
namespace ur_driver
|
namespace ur_driver
|
||||||
{
|
{
|
||||||
namespace comm
|
namespace comm
|
||||||
@@ -40,6 +42,8 @@ public:
|
|||||||
|
|
||||||
using _header_type = HeaderT;
|
using _header_type = HeaderT;
|
||||||
|
|
||||||
|
virtual bool parseWith(BinParser& bp) = 0;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
HeaderT header_;
|
HeaderT header_;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user