robot_env_evaluator 1.0.1
Loading...
Searching...
No Matches
robot_presets.hpp
Go to the documentation of this file.
1
20#ifndef ROBOT_ENV_EVALUATOR_ROBOT_PRESETS_HPP
21#define ROBOT_ENV_EVALUATOR_ROBOT_PRESETS_HPP
22
23#include <pinocchio/multibody/model.hpp>
24#include <pinocchio/multibody/geometry.hpp>
25
26#include <vector>
27#include <string>
28
29namespace robot_env_evaluator{
35 public:
36 RobotPresetInterface() = default;
37 virtual ~RobotPresetInterface() = default;
38
49 virtual void getPresetRobot(pinocchio::Model& model,
50 std::string& ee_name,
51 std::vector<std::string>& joint_names,
52 pinocchio::GeometryModel& collision_model) = 0;
53
54 virtual bool isFrankaRobot() const { return false; }
55 };
56
62 public:
63 FrankaEmikaPreset() = default;
64 ~FrankaEmikaPreset() = default;
65
74 void getPresetRobot(pinocchio::Model& model,
75 std::string& ee_name,
76 std::vector<std::string>& joint_names,
77 pinocchio::GeometryModel& collision_model) override;
78
79 bool isFrankaRobot() const override { return true; }
80 };
81
87 public:
88 FrankaEmikaNoHandPreset() = default;
89 ~FrankaEmikaNoHandPreset() = default;
90
99 void getPresetRobot(pinocchio::Model& model,
100 std::string& ee_name,
101 std::vector<std::string>& joint_names,
102 pinocchio::GeometryModel& collision_model) override;
103
104 bool isFrankaRobot() const override { return true; }
105 };
106
112 public:
119 static std::unique_ptr<RobotPresetInterface> createRobotPreset(const std::string& robot_name);
120 };
121}
122
123#endif // ROBOT_ENV_EVALUATOR_ROBOT_PRESETS_HPP
The Franka Emika Panda no hand collision mesh robot preset.
bool isFrankaRobot() const override
Check if the robot is a Franka robot.
void getPresetRobot(pinocchio::Model &model, std::string &ee_name, std::vector< std::string > &joint_names, pinocchio::GeometryModel &collision_model) override
Get the Preset Robot object.
The Franka Emika Panda robot preset.
void getPresetRobot(pinocchio::Model &model, std::string &ee_name, std::vector< std::string > &joint_names, pinocchio::GeometryModel &collision_model) override
Get the Preset Robot object.
bool isFrankaRobot() const override
Check if the robot is a Franka robot.
The factory class to get handle of the robot preset.
static std::unique_ptr< RobotPresetInterface > createRobotPreset(const std::string &robot_name)
Create a robot preset instance.
the Interface class for the robot preset. Inherit this class to create a new robot preset.
virtual void getPresetRobot(pinocchio::Model &model, std::string &ee_name, std::vector< std::string > &joint_names, pinocchio::GeometryModel &collision_model)=0
Get the Preset Robot object.
virtual bool isFrankaRobot() const
Check if the robot is a Franka robot.