upload driver
This commit is contained in:
@@ -197,11 +197,17 @@ TEST(RobotModel, FileThatTrongConfigurationFilesNapDuoc) {
|
||||
ASSERT_TRUE(st.ok()) << st.message;
|
||||
|
||||
// Va no phai khop voi cac gia tri ma phan con lai cua he dang gia dinh.
|
||||
EXPECT_NEAR(m.camera_height_above_floor(), 0.80, 1e-9)
|
||||
<< "chieu cao camera doi -> cliff_detect.nominal_tz phai doi theo";
|
||||
EXPECT_NEAR(m.geometry().wheel_radius, 0.075, 1e-9);
|
||||
// Ba so nay do tren robot that (banh Ø173 mm; camera cao hon LiDAR 17.7 cm
|
||||
// va truoc 9.5 cm; LiDAR cao 13 cm so voi tam truc, x = 0).
|
||||
EXPECT_NEAR(m.camera_height_above_floor(), 0.3935, 1e-9)
|
||||
<< "chieu cao camera doi -> cliff_detect.min_dist va nominal_tz phai "
|
||||
"doi theo. Xem pipeline.yaml muc cliff_detect.";
|
||||
EXPECT_NEAR(m.geometry().wheel_radius, 0.0865, 1e-9);
|
||||
EXPECT_NEAR(m.geometry().wheel_separation, 0.400, 1e-9);
|
||||
|
||||
Transform t;
|
||||
ASSERT_TRUE(m.StaticTransform(kBaseLinkFrame, kLaserFrame, &t));
|
||||
EXPECT_NEAR(t.translation.x, 0.24, 1e-9);
|
||||
// LiDAR ngay tren tam truc, khong phai gan mep truoc.
|
||||
EXPECT_NEAR(t.translation.x, 0.0, 1e-9);
|
||||
EXPECT_NEAR(t.translation.z, 0.13, 1e-9);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user