Skip to content

Commit

Permalink
Update controller_interface/include/semantic_components/semantic_comp…
Browse files Browse the repository at this point in the history
…onent_command_interface.hpp

Co-authored-by: Christoph Fröhlich <[email protected]>
  • Loading branch information
tpoignonec and christophfroehlich authored Dec 24, 2024
1 parent 2de80b4 commit db6cb8d
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@ template <typename MessageInputType>
class SemanticComponentCommandInterface
{
public:
explicit SemanticComponentCommandInterface(const std::string & name, size_t size = 0)
SemanticComponentCommandInterface(
const std::string & name, const std::vector<std::string> & interface_names)
: name_(name), interface_names_(interface_names)
{
command_interfaces_.reserve(interface_names.size());
}

explicit SemanticComponentCommandInterface(const std::string & name, size_t size = 0) : name_(name)
{
name_ = name;
interface_names_.reserve(size);
command_interfaces_.reserve(size);
}
Expand Down

0 comments on commit db6cb8d

Please sign in to comment.