Skip to main content

MPCPointCloudClearance Class

Avoid a point cloud using MPC. More...

Declaration​

class moveit_pro::behaviors::MPCPointCloudClearance { ... }

Included Headers​

#include <mpc_point_cloud_clearance.hpp>

Base class​

classMPCBehaviorBase<IMPL>

A base class for behaviors to help set up and execute MPC. More...

Public Constructors Index​

MPCPointCloudClearance (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > &shared_resources)

Public Static Functions Index​

static BT::PortsListprovidedPorts ()
static autogetResiduals ()

Define the residuals used by this MPC behavior. More...

static BT::KeyValueVectormetadata ()

Description​

Avoid a point cloud using MPC.

This behavior uses Model Predictive Control (MPC) to track a pose while avoiding a point cloud in real-time.

Optimization Problem​

The optimization problem aims to minimize the following cost: $l(x, u) = \sum_{i=1}^M w_i \cdot \|r_i(x, u)\|$ where $w_i$ is a non-negative weight for each residual functions, and $r_i(x, u)$ is the residual function. The goal of the optimization is to minimize the sum of the weighted residual norms. This site tracking behavior optimizes the following residuals.

  • Site tracking errors.
  • Point cloud clearance.
  • Cartesian velocity
  • Cartesian acceleration: For further details on the residual functions, please refer to the documentation of each residual function.

Tuning Tips​

  • Adjust the weights of the residual functions to prioritize specific constraints.

Definition at line 37 of file mpc_point_cloud_clearance.hpp.

Public Constructors​

MPCPointCloudClearance()​

moveit_pro::behaviors::MPCPointCloudClearance::MPCPointCloudClearance (const std::string & name, const BT::NodeConfiguration & config, const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > & shared_resources)

Declaration at line 40 of file mpc_point_cloud_clearance.hpp, definition at line 34 of file mpc_point_cloud_clearance.cpp.

Public Static Functions​

getResiduals()​

auto moveit_pro::behaviors::MPCPointCloudClearance::getResiduals ()
inline static

Define the residuals used by this MPC behavior.

This method allows the use of a MPCProblem instance to add residual-specific ports.

Returns

A BT::PortsList containing the required ports for the behavior.

Definition at line 50 of file mpc_point_cloud_clearance.hpp.

metadata()​

BT::KeyValueVector moveit_pro::behaviors::MPCPointCloudClearance::metadata ()
static

Declaration at line 59 of file mpc_point_cloud_clearance.hpp, definition at line 46 of file mpc_point_cloud_clearance.cpp.

providedPorts()​

BT::PortsList moveit_pro::behaviors::MPCPointCloudClearance::providedPorts ()
static

Declaration at line 43 of file mpc_point_cloud_clearance.hpp, definition at line 41 of file mpc_point_cloud_clearance.cpp.


The documentation for this class was generated from the following files:


Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.15.0.