moveit_controller_manager::MoveItControllerManager sub class that interfaces one ros_control controller_manager instance. All services and names are relative to ns_.
More...
|
virtual void | getActiveControllers (std::vector< std::string > &names) |
| Refresh controller list and output all active, managed controllers. More...
|
|
virtual moveit_controller_manager::MoveItControllerHandlePtr | getControllerHandle (const std::string &name) |
| Find and return the pre-allocated handle for the given controller. More...
|
|
virtual void | getControllerJoints (const std::string &name, std::vector< std::string > &joints) |
| Read resources from cached controller states. More...
|
|
virtual void | getControllersList (std::vector< std::string > &names) |
| Refresh controller list and output all managed controllers. More...
|
|
virtual ControllerState | getControllerState (const std::string &name) |
| Refresh controller state and output the state of the given one, only active_ will be set. More...
|
|
| MoveItControllerManager () |
| The default constructor. Reads the namespace from ~ros_control_namespace param and defaults to /. More...
|
|
| MoveItControllerManager (const std::string &ns) |
| Configure interface with namespace. More...
|
|
virtual bool | switchControllers (const std::vector< std::string > &activate, const std::vector< std::string > &deactivate) |
| Filter lists for managed controller and computes switching set. Stopped list might be extended by unsupported controllers that claim needed resources. More...
|
|
| MoveItControllerManager () |
|
virtual | ~MoveItControllerManager () |
|
|
typedef std::map< std::string, ControllerHandleAllocatorPtr > | AllocatorsMap |
|
typedef std::map< std::string, controller_manager_msgs::ControllerState > | ControllersMap |
|
typedef std::map< std::string, moveit_controller_manager::MoveItControllerHandlePtr > | HandleMap |
|
|
void | allocate (const std::string &name, const controller_manager_msgs::ControllerState &controller) |
| Allocates a MoveItControllerHandle instance for the given controller Might create allocator object first. More...
|
|
void | discover (bool force=false) |
| Call list_controllers and populate managed_controllers_ and active_controllers_. Allocates handles if needed. Throttled down to 1 Hz, controllers_mutex_ must be locked externally. More...
|
|
std::string | getAbsName (const std::string &name) |
| get fully qualified name More...
|
|
|
static bool | isActive (const controller_manager_msgs::ControllerState &s) |
| Check if given controller is active. More...
|
|
moveit_controller_manager::MoveItControllerManager sub class that interfaces one ros_control controller_manager instance. All services and names are relative to ns_.
Definition at line 84 of file controller_manager_plugin.cpp.
moveit_ros_control_interface::MoveItControllerManager::MoveItControllerManager |
( |
| ) |
|
|
inline |
moveit_ros_control_interface::MoveItControllerManager::MoveItControllerManager |
( |
const std::string & |
ns | ) |
|
|
inline |
Configure interface with namespace.
- Parameters
-
ns | namespace of ros_control node (without /controller_manager/) |
Definition at line 209 of file controller_manager_plugin.cpp.
void moveit_ros_control_interface::MoveItControllerManager::allocate |
( |
const std::string & |
name, |
|
|
const controller_manager_msgs::ControllerState & |
controller |
|
) |
| |
|
inlineprivate |
Allocates a MoveItControllerHandle instance for the given controller Might create allocator object first.
- Parameters
-
name | fully qualified name of the controller |
controller | controller information |
Definition at line 150 of file controller_manager_plugin.cpp.
void moveit_ros_control_interface::MoveItControllerManager::discover |
( |
bool |
force = false | ) |
|
|
inlineprivate |
Call list_controllers and populate managed_controllers_ and active_controllers_. Allocates handles if needed. Throttled down to 1 Hz, controllers_mutex_ must be locked externally.
- Parameters
-
Definition at line 116 of file controller_manager_plugin.cpp.
std::string moveit_ros_control_interface::MoveItControllerManager::getAbsName |
( |
const std::string & |
name | ) |
|
|
inlineprivate |
get fully qualified name
- Parameters
-
name | name to be resolved to an absolute name |
- Returns
- resolved name
Definition at line 189 of file controller_manager_plugin.cpp.
virtual void moveit_ros_control_interface::MoveItControllerManager::getActiveControllers |
( |
std::vector< std::string > & |
names | ) |
|
|
inlinevirtual |
virtual moveit_controller_manager::MoveItControllerHandlePtr moveit_ros_control_interface::MoveItControllerManager::getControllerHandle |
( |
const std::string & |
name | ) |
|
|
inlinevirtual |
virtual void moveit_ros_control_interface::MoveItControllerManager::getControllerJoints |
( |
const std::string & |
name, |
|
|
std::vector< std::string > & |
joints |
|
) |
| |
|
inlinevirtual |
virtual void moveit_ros_control_interface::MoveItControllerManager::getControllersList |
( |
std::vector< std::string > & |
names | ) |
|
|
inlinevirtual |
virtual ControllerState moveit_ros_control_interface::MoveItControllerManager::getControllerState |
( |
const std::string & |
name | ) |
|
|
inlinevirtual |
static bool moveit_ros_control_interface::MoveItControllerManager::isActive |
( |
const controller_manager_msgs::ControllerState & |
s | ) |
|
|
inlinestaticprivate |
virtual bool moveit_ros_control_interface::MoveItControllerManager::switchControllers |
( |
const std::vector< std::string > & |
activate, |
|
|
const std::vector< std::string > & |
deactivate |
|
) |
| |
|
inlinevirtual |
ControllersMap moveit_ros_control_interface::MoveItControllerManager::active_controllers_ |
|
private |
AllocatorsMap moveit_ros_control_interface::MoveItControllerManager::allocators_ |
|
private |
boost::mutex moveit_ros_control_interface::MoveItControllerManager::controllers_mutex_ |
|
private |
ros::Time moveit_ros_control_interface::MoveItControllerManager::controllers_stamp_ |
|
private |
HandleMap moveit_ros_control_interface::MoveItControllerManager::handles_ |
|
private |
ControllersMap moveit_ros_control_interface::MoveItControllerManager::managed_controllers_ |
|
private |
const std::string moveit_ros_control_interface::MoveItControllerManager::ns_ |
|
private |
The documentation for this class was generated from the following file: