21 "ompl_planning.yaml"};
30 "ompl_planning.yaml"};
43 RBX_INFO(
"Initializing Cob4 with `cob4_{description, moveit_config}`");
48 RBX_INFO(
"Initializing Cob4 with `robowflex_resources`");
65 const double pan = atan2(point_pan.translation().y(), point_pan.translation().x());
75 {
"gripper_left_finger_2_joint", 1.2},
76 {
"gripper_right_finger_1_joint", -1.0},
77 {
"gripper_right_finger_2_joint", 1.2}};
85 {
"gripper_left_finger_2_joint", 1.2}};
93 {
"gripper_right_finger_2_joint", 1.2}};
101 {
"r_gripper_finger_joint", 0.0}};
109 {
"gripper_left_finger_2_joint", 0.0}};
117 {
"gripper_right_finger_2_joint", 0.0}};
127 {
"base_joint/x", x}, {
"base_joint/y", y}, {
"base_joint/theta", theta}};
129 scratch_->setVariablePositions(pose);
133 RBX_WARN(
"base_joint does not exist, cannot move base! You need to set addVirtual to true");
void closeLeftGripper()
Closes the Cob4's left gripper.
void closeGrippers()
Closes the Cob4's grippers.
bool initialize()
Initialize the robot with arm_left and arm_right kinematics.
void openLeftGripper()
Opens the Cob4's left gripper.
void openRightGripper()
Opens the Cob4's right gripper.
void setBasePose(double x, double y, double theta)
Sets the base pose of the Cob4 robot (a virtual planar joint)
static const std::string DEFAULT_LIMITS
Default Limits.
static const std::string DEFAULT_SRDF
Default SRDF.
static const std::string RESOURCE_URDF
URDF from robowflex_resources.
void openGrippers()
Opens the Cob4's grippers.
static const std::string RESOURCE_KINEMATICS
kinematics from robowflex_resources
void closeRightGripper()
Closes the Cob4's right gripper.
static const std::string DEFAULT_KINEMATICS
Default kinematics.
static const std::string RESOURCE_LIMITS
Limits from robowflex_resources.
void pointHead(const Eigen::Vector3d &point)
Points the Cob4's head to a point in the world frame.
static const std::string DEFAULT_URDF
Default URDF.
static const std::string RESOURCE_SRDF
SRDF from robowflex_resources.
bool initialize(const Settings &settings=Settings(), const std::vector< std::string > &adapters=DEFAULT_ADAPTERS)
Initialize the planning context. All parameter provided are defaults.
static const std::string RESOURCE_CONFIG
Planning configuration from robowflex_resources.
Cob4OMPLPipelinePlanner(const RobotPtr &robot, const std::string &name="")
Constructor.
static const std::string DEFAULT_CONFIG
Default planning configuration.
A robowflex::PipelinePlanner that uses the MoveIt! default OMPL planning pipeline.
bool initialize(const std::string &config_file="", const Settings &settings=Settings(), const std::string &plugin=DEFAULT_PLUGIN, const std::vector< std::string > &adapters=DEFAULT_ADAPTERS)
Initialize planning pipeline. Loads OMPL planning plugin plugin with the planning adapters adapters....
Settings descriptor for settings provided by the default MoveIt! OMPL planning pipeline.
A shared pointer wrapper for robowflex::Robot.
Loads information about a robot and maintains information about a robot's state.
const RobotPose & getLinkTF(const std::string &name) const
Get the current pose of a link on the scratch state.
bool initialize(const std::string &urdf_file)
Initializes a robot from a kinematic description. A default semantic description is used.
bool loadKinematics(const std::string &group, bool load_subgroups=true)
Loads the kinematics plugin for a joint group and its subgroups. No kinematics are loaded by default.
robot_state::RobotStatePtr scratch_
Scratch robot state.
void setState(const std::vector< double > &positions)
Sets the scratch state from a vector of joint positions (all must be specified)
bool hasJoint(const std::string &joint) const
Checks if a joint exists in the robot.
#define RBX_WARN(fmt,...)
Output a warning logging message.
#define RBX_INFO(fmt,...)
Output a info logging message.
Functions for loading and animating robots in Blender.
std::string resolvePackage(const std::string &path)
Resolves package:// URLs to their canonical form. The path does not need to exist,...
Main namespace. Contains all library classes and functions.
std::decay< decltype(std::declval< moveit::core::Transforms >().getTransform("")) >::type RobotPose
A pose (point in SE(3)) used in various functions. Defined from what MoveIt! uses.