MoveIt Pro API
Core Behaviors for MoveIt Pro
Loading...
Searching...
No Matches
switch_controller.cpp File Reference
#include "moveit_pro_behavior/behaviors/core/switch_controller.hpp"
#include <fmt/format.h>
#include <spdlog/spdlog.h>
#include <controller_manager_msgs/srv/switch_controller.hpp>
#include "moveit_pro_behavior_interface/check_for_error.hpp"
#include "moveit_pro_behavior_interface/get_required_ports.hpp"
#include "moveit_pro_behavior_interface/metadata_fields.hpp"
#include "moveit_pro_behavior_interface/service_client_behavior_base.hpp"
#include "moveit_pro_macros/macros.hpp"
Include dependency graph for switch_controller.cpp:

Namespaces

namespace  moveit_pro
 
namespace  moveit_pro::behaviors
 

Functions

std::set< std::string, std::less<> > moveit_pro::behaviors::findConflictingControllers (const std::vector< std::string > &controllers_to_activate, const std::vector< controller_manager_msgs::msg::ControllerState > &all_controllers)
 Find the controllers that are in conflict with the ones to activate.
 
std::vector< std::string > moveit_pro::behaviors::filterAlreadyActiveControllers (const std::vector< std::string > &activate_controllers, const std::vector< controller_manager_msgs::msg::ControllerState > &all_controllers)
 Filter out controllers that are already active from the activation list.
 
std::vector< std::string > moveit_pro::behaviors::filterAlreadyInactiveControllers (const std::vector< std::string > &deactivate_controllers, const std::vector< controller_manager_msgs::msg::ControllerState > &all_controllers)
 Filter out controllers that are already inactive from the deactivation list.
 
std::set< std::string, std::less<> > moveit_pro::behaviors::findPrecedingControllers (const std::vector< std::string > &controllers_to_deactivate, const std::vector< controller_manager_msgs::msg::ControllerState > &all_controllers)
 Find preceding controllers in the controller chain that must be deactivated first.
 
std::set< std::string, std::less<> > moveit_pro::behaviors::findFollowingControllers (const std::vector< std::string > &controllers_to_activate, const std::vector< controller_manager_msgs::msg::ControllerState > &all_controllers)
 Find following controllers in the controller chain that must be activated first.