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
static boost::optional< ControlMethod > determineControlMethod(const std::string &hardware_interface)
returns the control method of a hardware interface
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...
std::string arm_id
bool isClaimingGripperController(const hardware_interface::ControllerInfo &info) const
checks if a controller wants to use the finger joints with the effort interface
std::vector< std::string > joint_names_
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 ...
bool isValidController(const hardware_interface::ControllerInfo &controller) const
checks if a controller can be used in the franka_hw gazebo plugin
static bool hasControlMethodAndValidSize(const hardware_interface::InterfaceResources &resource)
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.
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 ...
Can be used to check controllers in franka_gazebo.


franka_gazebo
Author(s): Franka Emika GmbH
autogenerated on Mon Sep 19 2022 03:06:05