File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ class Controller : public rclcpp::Node {
349349 point.positions = {FR_servo_data, FL_servo_data,
350350 RR_servo_data, RL_servo_data};
351351 point.velocities = {0.0 , 0.0 , 0.0 , 0.0 };
352- point.time_from_start = rclcpp::Duration::from_seconds (0.5 );
352+ point.time_from_start = rclcpp::Duration::from_seconds (0.2 );
353353
354354 servo.points .push_back (point);
355355 servo_pub->publish (servo);
@@ -361,7 +361,7 @@ int main(int argc, char* argv[]) {
361361 auto node = std::make_shared<Controller>();
362362
363363 // Using std::chrono to create a rate object
364- auto rate = std::chrono::milliseconds (600 ); // 200 Hz = 5ms per loop
364+ auto rate = std::chrono::milliseconds (300 ); // 200 Hz = 5ms per loop
365365
366366 while (rclcpp::ok ()) {
367367 rclcpp::spin_some (node);
You can’t perform that action at this time.
0 commit comments