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

Fixed a bug where tool0_controller position was all 0 for ur firmware version 1.8.xx

This commit is contained in:
Thomas Timm Andersen
2016-03-02 17:04:11 +01:00
parent 91450da173
commit 0dc244bbe8

View File

@@ -364,8 +364,8 @@ void RobotStateRT::unpack(uint8_t * buf) {
offset += sizeof(double) * 6;
i_actual_ = unpackVector(buf, offset, 6);
offset += sizeof(double) * 6;
if (version_ <= 1.8) {
if (version_ != 1.6)
if (version_ <= 1.9) {
if (version_ > 1.6)
tool_accelerometer_values_ = unpackVector(buf, offset, 3);
offset += sizeof(double) * (3 + 15);
tcp_force_ = unpackVector(buf, offset, 6);