Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to stop control on system time jump #125

Merged
merged 3 commits into from
Apr 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/ypspur_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ class YpspurRosNode
int key_;
bool simulate_;
bool wait_convergence_of_joint_trajectory_angle_vel_;
bool exit_on_time_jump_;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be function local variable


double tf_time_offset_;

Expand Down Expand Up @@ -454,6 +455,7 @@ class YpspurRosNode
}
pnh_.param(
"wait_convergence_of_joint_trajectory_angle_vel", wait_convergence_of_joint_trajectory_angle_vel_, true);
pnh_.param("exit_on_time_jump", exit_on_time_jump_, false);
pnh_.param("ypspur_bin", ypspur_bin_, std::string("ypspur-coordinator"));
pnh_.param("param_file", param_file_, std::string(""));
pnh_.param("tf_time_offset", tf_time_offset_, 0.0);
Expand Down Expand Up @@ -659,6 +661,8 @@ class YpspurRosNode
args.push_back(std::string("--enable-get-digital-io"));
if (simulate_)
args.push_back(std::string("--without-device"));
if (exit_on_time_jump_)
args.push_back(std::string("--exit-on-time-jump"));
if (param_file_.size() > 0)
{
args.push_back(std::string("-p"));
Expand Down
Loading