1
0
mirror of https://gitlab.com/obbart/universal_robots_ros_driver.git synced 2026-04-12 11:00:47 +02:00

Added and implemented primary messages

This commit is contained in:
Felix Mauch
2019-04-08 15:39:59 +02:00
parent adf1560105
commit 4bf5793d79
18 changed files with 382 additions and 145 deletions

View File

@@ -133,6 +133,38 @@ public:
parse(val.z);
}
void parse(vector3d_t& val)
{
for (size_t i = 0; i < val.size(); ++i)
{
parse(val[i]);
}
}
void parse(vector6d_t& val)
{
for (size_t i = 0; i < val.size(); ++i)
{
parse(val[i]);
}
}
void parse(vector6int32_t& val)
{
for (size_t i = 0; i < val.size(); ++i)
{
parse(val[i]);
}
}
void parse(vector6uint32_t& val)
{
for (size_t i = 0; i < val.size(); ++i)
{
parse(val[i]);
}
}
// Explicit parsing order of fields to avoid issues with struct layout
void parse(cartesian_coord_t& val)
{
@@ -140,7 +172,7 @@ public:
parse(val.rotation);
}
void parse_remainder(std::string& val)
void parseRemainder(std::string& val)
{
parse(val, size_t(buf_end_ - buf_pos_));
}

View File

@@ -44,6 +44,8 @@ public:
virtual bool parseWith(BinParser& bp) = 0;
virtual std::string toString() const = 0;
private:
HeaderT header_;
};