We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41aa16a commit e79862bCopy full SHA for e79862b
joint_trajectory_controller/src/joint_trajectory_controller.cpp
@@ -200,7 +200,8 @@ controller_interface::return_type JointTrajectoryController::update(
200
time_data.uptime = time_data_.readFromRT()->uptime + time_data.period;
201
rclcpp::Time traj_time =
202
time_data_.readFromRT()->uptime + rclcpp::Duration::from_nanoseconds(t_period);
203
- time_data_.writeFromNonRT(time_data);
+ time_data_.reset();
204
+ time_data_.initRT(time_data);
205
206
bool first_sample = false;
207
// if sampling the first time, set the point before you sample
0 commit comments