MoveIt Pro Behavior
Core Behaviors for MoveIt Pro
moveit_studio::behaviors::wrench_measurement Namespace Reference

Functions

bool forceIsOutsideBounds (const geometry_msgs::msg::Wrench &measured, const double force_threshold)
 Evaluate if any force in measured wrench are outside the specified force threshold. More...
 

Function Documentation

◆ forceIsOutsideBounds()

bool moveit_studio::behaviors::wrench_measurement::forceIsOutsideBounds ( const geometry_msgs::msg::Wrench &  measured,
const double  force_threshold 
)

Evaluate if any force in measured wrench are outside the specified force threshold.

Parameters
measuredWrench measurement to evaluate
force_thresholdThe maximum force threshold to compare the measured wrench against.
Returns
True if the absolute value of any field in measured is less than the corresponding value in force_threshold.