Skip to content

Commit

Permalink
Update to use class.
Browse files Browse the repository at this point in the history
  • Loading branch information
destogl committed May 16, 2022
1 parent d77b4b6 commit 778ed13
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions forward_command_controller/forward_command_plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@

<class name="forward_command_controller/ChainableForwardCommandController"
type="forward_command_controller::ChainableForwardCommandController"
base_class_type="controller_interface::ControllerInterface">
base_class_type="controller_interface::ChainableControllerInterface">
<description>
The forward command controller commands a group of joints in a given interface
</description>
</class>
<class name="forward_command_controller/ChainableMultiInterfaceForwardCommandController"
type="forward_command_controller::ChainableMultiInterfaceForwardCommandController"
base_class_type="controller_interface::ControllerInterface">
base_class_type="controller_interface::ChainableControllerInterface">
<description>
MultiInterfaceForwardController ros2_control controller.
</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ template <
std::is_convertible<T *, forward_command_controller::ForwardControllersBase *>::value,
T>::type * = nullptr,
typename std::enable_if<
std::is_convertible<T *, controller_interface::ControllerInterface *>::value, T>::type * =
std::is_convertible<T *, controller_interface::ControllerInterfaceBase *>::value, T>::type * =
nullptr>
class BaseForwardCommandController : public T
{
Expand All @@ -54,9 +54,9 @@ class BaseForwardCommandController : public T
protected:
void declare_parameters() override
{
controller_interface::ControllerInterface::auto_declare<std::vector<std::string>>(
controller_interface::ControllerInterfaceBase::auto_declare<std::vector<std::string>>(
"joints", std::vector<std::string>());
controller_interface::ControllerInterface::auto_declare<std::string>("interface_name", "");
controller_interface::ControllerInterfaceBase::auto_declare<std::string>("interface_name", "");
};

controller_interface::CallbackReturn read_parameters() override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ template <
std::is_convertible<T *, forward_command_controller::ForwardControllersBase *>::value,
T>::type * = nullptr,
typename std::enable_if<
std::is_convertible<T *, controller_interface::ControllerInterface *>::value, T>::type * =
std::is_convertible<T *, controller_interface::ControllerInterfaceBase *>::value, T>::type * =
nullptr>
class BaseMultiInterfaceForwardCommandController : public T
{
Expand All @@ -54,8 +54,8 @@ class BaseMultiInterfaceForwardCommandController : public T
protected:
void declare_parameters() override
{
controller_interface::ControllerInterface::auto_declare<std::string>("joint", joint_name_);
controller_interface::ControllerInterface::auto_declare<std::vector<std::string>>(
controller_interface::ControllerInterfaceBase::auto_declare<std::string>("joint", joint_name_);
controller_interface::ControllerInterfaceBase::auto_declare<std::vector<std::string>>(
"interface_names", interface_names_);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ PLUGINLIB_EXPORT_CLASS(
forward_command_controller::ForwardCommandController, controller_interface::ControllerInterface)
PLUGINLIB_EXPORT_CLASS(
forward_command_controller::ChainableForwardCommandController,
controller_interface::ControllerInterface)
controller_interface::ChainableControllerInterface)
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ PLUGINLIB_EXPORT_CLASS(
controller_interface::ControllerInterface)
PLUGINLIB_EXPORT_CLASS(
forward_command_controller::ChainableMultiInterfaceForwardCommandController,
controller_interface::ControllerInterface)
controller_interface::ChainableControllerInterface)

0 comments on commit 778ed13

Please sign in to comment.