mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-12 11:00:47 +02:00
Changed KinematicsInfo to match reality
In the docs, the message has a length of 222 bytes, while the robots send 225 bytes of data. As parsing goes correct, they have to be at the end of the message, we assume that the calibration_data field in fact has the type of a 4-byte integer.
This commit is contained in:
@@ -34,6 +34,12 @@ bool KinematicsInfo::parseWith(comm::BinParser& bp)
|
||||
std::string KinematicsInfo::toString() const
|
||||
{
|
||||
std::stringstream os;
|
||||
os << "checksum: [";
|
||||
for (size_t i = 0; i < checksum_.size(); ++i)
|
||||
{
|
||||
os << checksum_[i] << " ";
|
||||
}
|
||||
os << "]" << std::endl;
|
||||
os << "dh_theta: [";
|
||||
for (size_t i = 0; i < dh_theta_.size(); ++i)
|
||||
{
|
||||
@@ -62,6 +68,8 @@ std::string KinematicsInfo::toString() const
|
||||
}
|
||||
os << "]" << std::endl;
|
||||
|
||||
os << "calibration_status: " << calibration_status_ << std::endl;
|
||||
|
||||
return os.str();
|
||||
}
|
||||
} // namespace primary_interface
|
||||
|
||||
Reference in New Issue
Block a user