This repository was archived by the owner on Mar 28, 2025. It is now read-only.
File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -561,13 +561,13 @@ hardware_interface::return_type GazeboSystem::read(
561
561
562
562
for (unsigned int j = 0 ; j < this ->dataPtr ->sim_ft_sensors_ .size (); j++) {
563
563
auto sim_ft_sensor = this ->dataPtr ->sim_ft_sensors_ [j];
564
- this ->dataPtr ->imu_sensor_data_ [j][0 ] = sim_ft_sensor->Force ().X ();
565
- this ->dataPtr ->imu_sensor_data_ [j][1 ] = sim_ft_sensor->Force ().Y ();
566
- this ->dataPtr ->imu_sensor_data_ [j][2 ] = sim_ft_sensor->Force ().Z ();
564
+ this ->dataPtr ->ft_sensor_data_ [j][0 ] = sim_ft_sensor->Force ().X ();
565
+ this ->dataPtr ->ft_sensor_data_ [j][1 ] = sim_ft_sensor->Force ().Y ();
566
+ this ->dataPtr ->ft_sensor_data_ [j][2 ] = sim_ft_sensor->Force ().Z ();
567
567
568
- this ->dataPtr ->imu_sensor_data_ [j][3 ] = sim_ft_sensor->Torque ().X ();
569
- this ->dataPtr ->imu_sensor_data_ [j][4 ] = sim_ft_sensor->Torque ().Y ();
570
- this ->dataPtr ->imu_sensor_data_ [j][5 ] = sim_ft_sensor->Torque ().Z ();
568
+ this ->dataPtr ->ft_sensor_data_ [j][3 ] = sim_ft_sensor->Torque ().X ();
569
+ this ->dataPtr ->ft_sensor_data_ [j][4 ] = sim_ft_sensor->Torque ().Y ();
570
+ this ->dataPtr ->ft_sensor_data_ [j][5 ] = sim_ft_sensor->Torque ().Z ();
571
571
}
572
572
return hardware_interface::return_type::OK;
573
573
}
You can’t perform that action at this time.
0 commit comments