2 Commits
Author SHA1 Message Date
Даниил Грабарь 36d620317a Update setting 2026-09-16 14:13:21 +10:00
Даниил Грабарь 48e842656b fix: report mismatched FRI periods 2026-09-16 14:11:37 +10:00
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
robot:
name: "iiwa7"
ip: "192.170.10.2"
ip: "192.168.21.147"
port: 30200
fri_cycle_ms: 10 # период FRI-цикла: 5 мс (200 Гц) или 10 мс (100 Гц)
description: pkg://iiwa_description/urdf/iiwa7.urdf.xacro
+1 -1
View File
@@ -1,6 +1,6 @@
robot:
name: "iiwa7"
ip: "192.170.10.2"
ip: "192.168.21.147"
port: 30200
fri_cycle_ms: 10 # период FRI-цикла: 5 мс (200 Гц) или 10 мс (100 Гц)
description: pkg://iiwa_description/urdf/iiwa7.urdf.xacro
+4 -1
View File
@@ -56,7 +56,10 @@ void FRIClient::captureData(bool commanding)
if (expected_sample_time_ > 0.0 &&
std::abs(current_.sample_time - expected_sample_time_) > 1e-9)
{
throw std::runtime_error("Sunrise FRI period differs from robot.fri_cycle_ms");
throw std::runtime_error(
"Sunrise FRI period is " + std::to_string(current_.sample_time * 1000.0) +
" ms, but robot.fri_cycle_ms is " +
std::to_string(expected_sample_time_ * 1000.0) + " ms");
}
if (current_.valid && current_.session == COMMANDING_ACTIVE) {
const double elapsed = static_cast<double>(sec - current_.time_stamp_sec) +