controller_verifier.h
Go to the documentation of this file.
1 #pragma once
2 #include <franka_gazebo/joint.h>
6 #include <boost/optional.hpp>
7 
8 namespace franka_gazebo {
9 
13  public:
17  ControllerVerifier(const std::map<std::string, std::shared_ptr<franka_gazebo::Joint>>& joints,
18  const std::string& arm_id);
19 
21  bool areArmJoints(const std::set<std::string>& resources) const;
22 
24  bool isValidController(const hardware_interface::ControllerInfo& controller) const;
25 
27  bool areFingerJoints(const std::set<std::string>& resources) const;
28 
31 
35 
37  static boost::optional<ControlMethod> determineControlMethod(
38  const std::string& hardware_interface);
39 
40  private:
41  std::vector<std::string> joint_names_;
42  std::string arm_id_;
43 
45 };
46 } // namespace franka_gazebo
franka_gazebo
Definition: controller_verifier.h:8
controller_info.h
franka_gazebo::ControllerVerifier::isValidController
bool isValidController(const hardware_interface::ControllerInfo &controller) const
checks if a controller can be used in the franka_hw gazebo plugin
Definition: controller_verifier.cpp:14
joint.h
franka_gazebo::ControllerVerifier::areFingerJoints
bool areFingerJoints(const std::set< std::string > &resources) const
checks if a set of joint_names only contains the joints that are used for the gripper
Definition: controller_verifier.cpp:74
franka_gazebo::ControllerVerifier::arm_id_
std::string arm_id_
Definition: controller_verifier.h:42
hardware_interface
franka_gazebo::ControllerVerifier::isClaimingGripperController
bool isClaimingGripperController(const hardware_interface::ControllerInfo &info) const
checks if a controller wants to use the finger joints with the effort interface
Definition: controller_verifier.cpp:36
arm_id
std::string arm_id
franka_gazebo::ControllerVerifier::isClaimingArmController
bool isClaimingArmController(const hardware_interface::ControllerInfo &info) const
checks if a controller that uses the joints of the arm (not gripper joints) claims a position,...
Definition: controller_verifier.cpp:26
franka_gazebo::ControllerVerifier::hasControlMethodAndValidSize
static bool hasControlMethodAndValidSize(const hardware_interface::InterfaceResources &resource)
Definition: controller_verifier.cpp:54
franka_gazebo::ControllerVerifier::determineControlMethod
static boost::optional< ControlMethod > determineControlMethod(const std::string &hardware_interface)
returns the control method of a hardware interface
Definition: controller_verifier.cpp:80
hardware_interface::ControllerInfo
franka_gazebo::ControllerVerifier::areArmJoints
bool areArmJoints(const std::set< std::string > &resources) const
checks if a set of joint_names only contains the joints that are used for the arm
Definition: controller_verifier.cpp:61
franka_gazebo::ControllerVerifier
Can be used to check controllers in franka_gazebo.
Definition: controller_verifier.h:12
franka_gazebo::ControllerVerifier::ControllerVerifier
ControllerVerifier(const std::map< std::string, std::shared_ptr< franka_gazebo::Joint >> &joints, const std::string &arm_id)
Creates a ControllerVerifier object to check controllers for franka_gazebo.
Definition: controller_verifier.cpp:5
franka_gazebo::ControllerVerifier::joint_names_
std::vector< std::string > joint_names_
Definition: controller_verifier.h:41
hardware_interface::InterfaceResources
interface_resources.h
hardware_resource_manager.h


franka_gazebo
Author(s): Franka Emika GmbH
autogenerated on Mon Sep 19 2022 02:33:28