#include <array>
#include <list>
#include <memory>
#include <random>
#include <set>
#include <string>
#include <gtest/gtest.h>
#include <hardware_interface/controller_info.h>
#include <hardware_interface/joint_command_interface.h>
#include <joint_limits_interface/joint_limits.h>
#include <joint_limits_interface/joint_limits_urdf.h>
#include <ros/ros.h>
#include <urdf/model.h>
#include <franka_hw/franka_cartesian_command_interface.h>
#include <franka_hw/franka_combinable_hw.h>
Go to the source code of this file.
Classes | |
class | CombinableControllerConflict |
class | CombinableNoControllerConflict |
std::string arm_id2 | ( | "panda2" | ) |
std::string cp_iface_str | ( | "franka_hw::FrankaPoseCartesianInterface" | ) |
std::string cv_iface_str | ( | "franka_hw::FrankaVelocityCartesianInterface" | ) |
INSTANTIATE_TEST_CASE_P | ( | combinableAdmissibleRequests | , |
CombinableNoControllerConflict | , | ||
::testing::Values(std::list< hardware_interface::ControllerInfo >{jt_info}, std::list< hardware_interface::ControllerInfo >{jt_info, cp_arm2_info}) | |||
) |
std::string jp_iface_str | ( | "hardware_interface::PositionJointInterface" | ) |
std::string jt_iface_str | ( | "hardware_interface::EffortJointInterface" | ) |
std::string jv_iface_str | ( | "hardware_interface::VelocityJointInterface" | ) |
std::string name_str | ( | "some_controller" | ) |
hardware_interface::ControllerInfo newInfo | ( | const std::string & | name, |
const std::string & | type, | ||
const hardware_interface::InterfaceResources & | resource1 | ||
) |
Definition at line 24 of file franka_combinable_hw_controller_switching_test.cpp.
hardware_interface::ControllerInfo newInfo | ( | const std::string & | name, |
const std::string & | type, | ||
const hardware_interface::InterfaceResources & | resource1, | ||
const hardware_interface::InterfaceResources & | resource2 | ||
) |
Definition at line 36 of file franka_combinable_hw_controller_switching_test.cpp.
hardware_interface::ControllerInfo newInfo | ( | const std::string & | name, |
const std::string & | type, | ||
const hardware_interface::InterfaceResources & | resource1, | ||
const hardware_interface::InterfaceResources & | resource2, | ||
const hardware_interface::InterfaceResources & | resource3 | ||
) |
Definition at line 46 of file franka_combinable_hw_controller_switching_test.cpp.
TEST | ( | FrankaCombinableHWTests | , |
CanInitROSInterfaces | |||
) |
Definition at line 180 of file franka_combinable_hw_controller_switching_test.cpp.
TEST_P | ( | CombinableControllerConflict | , |
ConflictsForIncompatibleControllers | |||
) |
Definition at line 188 of file franka_combinable_hw_controller_switching_test.cpp.
TEST_P | ( | CombinableNoControllerConflict | , |
DoesNotConflictForCompatibleControllers | |||
) |
Definition at line 192 of file franka_combinable_hw_controller_switching_test.cpp.
TEST_P | ( | CombinableNoControllerConflict | , |
CanPrepareSwitchForCompatibleControllers | |||
) |
Definition at line 196 of file franka_combinable_hw_controller_switching_test.cpp.
std::string type_str | ( | "SomeControllerClass" | ) |
std::string unknown_iface_str | ( | "hardware_interface::UnknownInterface" | ) |
std::string arm_id |
Definition at line 111 of file franka_combinable_hw_controller_switching_test.cpp.
Definition at line 110 of file franka_combinable_hw_controller_switching_test.cpp.
hardware_interface::ControllerInfo cp_arm2_info = newInfo(name_str, type_str, cp_arm2_res) |
Definition at line 121 of file franka_combinable_hw_controller_switching_test.cpp.
Definition at line 135 of file franka_combinable_hw_controller_switching_test.cpp.
hardware_interface::ControllerInfo cp_info = newInfo(name_str, type_str, cp_res) |
Definition at line 142 of file franka_combinable_hw_controller_switching_test.cpp.
Definition at line 134 of file franka_combinable_hw_controller_switching_test.cpp.
Definition at line 133 of file franka_combinable_hw_controller_switching_test.cpp.
hardware_interface::ControllerInfo cv_info = newInfo(name_str, type_str, cv_res) |
Definition at line 141 of file franka_combinable_hw_controller_switching_test.cpp.
std::array<std::string, 7> joint_names |
Definition at line 27 of file franka_hw_controller_switching_test.cpp.
std::set<std::string> joints_set |
Definition at line 108 of file franka_combinable_hw_controller_switching_test.cpp.
Definition at line 129 of file franka_combinable_hw_controller_switching_test.cpp.
Definition at line 128 of file franka_combinable_hw_controller_switching_test.cpp.
hardware_interface::ControllerInfo jp_info = newInfo(name_str, type_str, jp_res) |
Definition at line 138 of file franka_combinable_hw_controller_switching_test.cpp.
Definition at line 126 of file franka_combinable_hw_controller_switching_test.cpp.
hardware_interface::ControllerInfo jp_jp_jp_info |
Definition at line 136 of file franka_combinable_hw_controller_switching_test.cpp.
Definition at line 127 of file franka_combinable_hw_controller_switching_test.cpp.
Definition at line 146 of file franka_combinable_hw_controller_switching_test.cpp.
Definition at line 145 of file franka_combinable_hw_controller_switching_test.cpp.
hardware_interface::ControllerInfo jt_info = newInfo(name_str, type_str, jt_res) |
Definition at line 140 of file franka_combinable_hw_controller_switching_test.cpp.
Definition at line 143 of file franka_combinable_hw_controller_switching_test.cpp.
Definition at line 125 of file franka_combinable_hw_controller_switching_test.cpp.
Definition at line 144 of file franka_combinable_hw_controller_switching_test.cpp.
Definition at line 132 of file franka_combinable_hw_controller_switching_test.cpp.
Definition at line 131 of file franka_combinable_hw_controller_switching_test.cpp.
hardware_interface::ControllerInfo jv_info = newInfo(name_str, type_str, jv_res) |
Definition at line 139 of file franka_combinable_hw_controller_switching_test.cpp.
Definition at line 130 of file franka_combinable_hw_controller_switching_test.cpp.
hardware_interface::ControllerInfo no_id_info = newInfo(name_str, type_str, no_id_res) |
Definition at line 122 of file franka_combinable_hw_controller_switching_test.cpp.
std::set<std::string> no_id_set = {"joint1"} |
Definition at line 112 of file franka_combinable_hw_controller_switching_test.cpp.
hardware_interface::ControllerInfo unknown_iface_info |
Definition at line 123 of file franka_combinable_hw_controller_switching_test.cpp.
hardware_interface::InterfaceResources unknown_iface_res(unknown_iface_str, joints_set) |