File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -214,11 +214,11 @@ void rtdeWorker(const int second_to_run)
214214 std::unique_ptr<rtde_interface::DataPackage> data_pkg =
215215 std::make_unique<rtde_interface::DataPackage>(g_my_robot->getUrDriver ()->getRTDEOutputRecipe ());
216216 int frequency = g_my_robot->getUrDriver ()->getControlFrequency ();
217- int period_ms = 2 ;
218- if (frequency > 0 )
219- {
220- period_ms = static_cast <int >(1000.0 / frequency);
221- }
217+ // int period_ms = 2;
218+ // if (frequency > 0)
219+ // {
220+ // period_ms = static_cast<int>(1000.0 / frequency);
221+ // }
222222 while (g_RUNNING)
223223 {
224224 urcl::vector6d_t local_ft_vec = g_FT_VEC;
@@ -230,12 +230,12 @@ void rtdeWorker(const int second_to_run)
230230 std::stringstream ss;
231231 ss << std::fixed << std::setprecision (2 ) << actual_tcp_force;
232232 // Throttle output to once per second
233- if (std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::steady_clock::now () - start_time). count () %
234- 1000 <
235- period_ms)
236- {
237- URCL_LOG_INFO (" Force-torque reported by robot: %s" , ss.str ().c_str ());
238- }
233+ // if (std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::steady_clock::now() -
234+ // start_time).count() % 1000 <
235+ // period_ms)
236+ // {
237+ URCL_LOG_INFO (" Force-torque reported by robot: %s" , ss.str ().c_str ());
238+ // }
239239 }
240240 else
241241 {
You can’t perform that action at this time.
0 commit comments