moveit2
The MoveIt Motion Planning Framework for ROS 2.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
online_signal_smoothing::AccelerationLimitedPlugin Class Reference

#include <acceleration_filter.h>

Inheritance diagram for online_signal_smoothing::AccelerationLimitedPlugin:
Inheritance graph
[legend]
Collaboration diagram for online_signal_smoothing::AccelerationLimitedPlugin:
Collaboration graph
[legend]

Public Member Functions

bool initialize (rclcpp::Node::SharedPtr node, moveit::core::RobotModelConstPtr robot_model, size_t num_joints) override
 
bool doSmoothing (Eigen::VectorXd &positions, Eigen::VectorXd &velocities, Eigen::VectorXd &accelerations) override
 
bool reset (const Eigen::VectorXd &positions, const Eigen::VectorXd &velocities, const Eigen::VectorXd &accelerations) override
 
 ~AccelerationLimitedPlugin () override
 
- Public Member Functions inherited from online_signal_smoothing::SmoothingBaseClass
 SmoothingBaseClass ()
 
virtual ~SmoothingBaseClass ()
 

Detailed Description

Definition at line 92 of file acceleration_filter.h.

Constructor & Destructor Documentation

◆ ~AccelerationLimitedPlugin()

online_signal_smoothing::AccelerationLimitedPlugin::~AccelerationLimitedPlugin ( )
inlineoverride

memory allocated by osqp is freed in destructor

Definition at line 128 of file acceleration_filter.h.

Member Function Documentation

◆ doSmoothing()

bool online_signal_smoothing::AccelerationLimitedPlugin::doSmoothing ( Eigen::VectorXd &  positions,
Eigen::VectorXd &  velocities,
Eigen::VectorXd &  accelerations 
)
overridevirtual

Smooth the command signals for all DOF. This function limits the change in velocity using the acceleration specified in the robot model.

Parameters
positionsarray of joint position commands
velocitiesarray of joint velocity commands
accelerations(unused)
Returns
True if smoothing was successful

Implements online_signal_smoothing::SmoothingBaseClass.

Definition at line 246 of file acceleration_filter.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize()

bool online_signal_smoothing::AccelerationLimitedPlugin::initialize ( rclcpp::Node::SharedPtr  node,
moveit::core::RobotModelConstPtr  robot_model,
size_t  num_joints 
)
overridevirtual

Initialize the acceleration based smoothing plugin

Parameters
nodeROS node, used for parameter retrieval
robot_modeltypically used to retrieve vel/accel/jerk limits
num_jointsnumber of actuated joints in the JointGroup Servo controls
Returns
True if initialization was successful

Implements online_signal_smoothing::SmoothingBaseClass.

Definition at line 140 of file acceleration_filter.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset()

bool online_signal_smoothing::AccelerationLimitedPlugin::reset ( const Eigen::VectorXd &  positions,
const Eigen::VectorXd &  velocities,
const Eigen::VectorXd &  accelerations 
)
overridevirtual

Reset to a given joint state. This method must be called before doSmoothing.

Parameters
positionsreset the filters to the joint positions
velocitiesreset the filters to the joint velocities
accelerations(unused)
Returns
True if reset was successful

Implements online_signal_smoothing::SmoothingBaseClass.

Definition at line 334 of file acceleration_filter.cpp.

Here is the caller graph for this function:

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