Skip to content
Open
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
7 changes: 7 additions & 0 deletions controller_interface/src/controller_interface_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ return_type ControllerInterfaceBase::init(
auto_declare<int>("update_rate", static_cast<int>(params.controller_manager_update_rate));
auto_declare<bool>("is_async", false);
auto_declare<int>("thread_priority", -100);
Comment thread
Nibanovic marked this conversation as resolved.
Outdated
Comment thread
destogl marked this conversation as resolved.
Outdated

auto_declare<int>("async_parameters.thread_priority", 50);
auto_declare<std::string>("async_parameters.scheduling_policy", "synchronized");
auto_declare<std::vector<int64_t>>("async_parameters.cpu_affinity", std::vector<int64_t>());
auto_declare<int>("async_parameters.execution_rate", impl_->ctrl_itf_params_.update_rate);
auto_declare<bool>("async_parameters.wait_until_initial_trigger", true);
auto_declare<bool>("async_parameters.print_warnings", true);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe, it is wiser to add declare_parameters method to the asyncParams and then handle it in the realtime_tools, this way any new parameter need not be reflected again and again here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah, that is a good catch. Added a commit for this

}
catch (const std::exception & e)
{
Expand Down
Loading