EasyNav Plugins
Loading...
Searching...
No Matches
MPPIOptimizer Class Reference

#include <MPPIOptimizer.hpp>

Public Member Functions

MPPIResult compute_control (const geometry_msgs::msg::Pose &current_pose, const nav_msgs::msg::Path &path, const pcl::PointCloud< pcl::PointXYZ > &points)
 Computes the control commands using MPPI optimization.
 MPPIOptimizer (double num_samples, double horizon_steps, double dt, double lambda, double max_lin_vel=1.0, double max_ang_vel=1.0, double max_lin_acc=1.0, double max_ang_acc=1.0, double fov=M_PI/2.0, double safety_radius=0.6)
 Constructor for MPPIOptimizer.

Constructor & Destructor Documentation

◆ MPPIOptimizer()

MPPIOptimizer ( double num_samples,
double horizon_steps,
double dt,
double lambda,
double max_lin_vel = 1.0,
double max_ang_vel = 1.0,
double max_lin_acc = 1.0,
double max_ang_acc = 1.0,
double fov = M_PI / 2.0,
double safety_radius = 0.6 )

Constructor for MPPIOptimizer.

Parameters
num_samplesNumber of samples to generate for MPPI.
horizon_stepsNumber of steps in the prediction horizon.
dtTime step for the simulation.
lambdaTemperature parameter for MPPI.
max_lin_velMaximum linear velocity in m/s.
max_ang_velMaximum angular velocity in rad/s.
max_lin_accMaximum linear acceleration in m/s^2.
max_ang_accMaximum angular acceleration in rad/s^2.
fovField of view in radians for trajectory sampling.
safety_radiusSafety radius for obstacle avoidance in meters.

Member Function Documentation

◆ compute_control()

MPPIResult compute_control ( const geometry_msgs::msg::Pose & current_pose,
const nav_msgs::msg::Path & path,
const pcl::PointCloud< pcl::PointXYZ > & points )

Computes the control commands using MPPI optimization.

Parameters
current_poseCurrent pose of the robot.
pathPlanned path to follow.
pointsPoint cloud of the environment.
Returns
MPPIResult containing the best control commands and trajectories.

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