Skip to content

Commit dc0c59a

Browse files
committed
Use 'auto_declare' for 'update_rate' parameter.
1 parent 02b6cb1 commit dc0c59a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

controller_interface/src/controller_interface.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ return_type ControllerInterface::init(const std::string & controller_name)
3434

3535
try
3636
{
37-
node_->declare_parameter("update_rate", 0);
37+
auto_declare<int>("update_rate", 0);
3838
}
3939
catch (const std::exception & e)
4040
{
@@ -49,7 +49,6 @@ return_type ControllerInterface::init(const std::string & controller_name)
4949
case LifecycleNodeInterface::CallbackReturn::ERROR:
5050
case LifecycleNodeInterface::CallbackReturn::FAILURE:
5151
return return_type::ERROR;
52-
break;
5352
}
5453

5554
node_->register_on_configure(

0 commit comments

Comments
 (0)