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

Add support for version 3.5

A new undocumented uchar was added to RobotMode
This commit is contained in:
Simon Schmeisser (isys vision)
2018-01-08 09:14:54 +01:00
committed by Simon Rasmussen
parent 6950b3c4bd
commit bf85755744
4 changed files with 35 additions and 3 deletions

View File

@@ -54,6 +54,18 @@ bool RobotModeData_V3_2::parseWith(BinParser& bp)
return true;
}
bool RobotModeData_V3_5::parseWith(BinParser& bp)
{
if (!bp.checkSize<RobotModeData_V3_5>())
return false;
RobotModeData_V3_2::parseWith(bp);
bp.parse(unknown_internal_use);
return true;
}
bool RobotModeData_V1_X::consumeWith(URStatePacketConsumer& consumer)
{
return consumer.consume(*this);
@@ -65,4 +77,8 @@ bool RobotModeData_V3_0__1::consumeWith(URStatePacketConsumer& consumer)
bool RobotModeData_V3_2::consumeWith(URStatePacketConsumer& consumer)
{
return consumer.consume(*this);
}
}
bool RobotModeData_V3_5::consumeWith(URStatePacketConsumer& consumer)
{
return consumer.consume(*this);
}