A Behavior to forward JointJog commands to a Joint Velocity Controller. More...
Declaration
class moveit_pro::behaviors::JointJog { ... }
#include <joint_jog.hpp>
Base class
Public Constructors Index
| JointJog (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > &shared_resources) |
|
|
|
Public Member Functions Index
Private Member Functions Index
Private Member Attributes Index
Public Static Functions Index
Public Static Attributes Index
Description
A Behavior to forward JointJog commands to a Joint Velocity Controller.
This Behavior will subscribe to messages of type control_msgs/JointJog, and forward them to a Joint Velocity Controller for execution. The behavior acts as a bridge, forwarding commands to the controller only if they are 'safe' to execute, i.e. not predicted to cause a collision in the near future, or hit joint limits.
The planning group to control is retrieved from the Joint Velocity Controller's (JVC) parameter server, since each JVC instance is configured to control a specific planning group.
A link padding can be specified to virtually increase the size of the robot links for collision checking. A stop safety factor can be specified to increase the time horizon for the stop trajectory collision check.
| Data Port Name | Port Type | Object Type |
|---|
| controller_name | Input | std::string |
| link_padding | Input | double |
| stop_safety_factor | Input | double |
| include_octomap | Input | bool |
| skip_collision_checks | Input | bool |
Definition at line 46 of file joint_jog.hpp.
Public Constructors
JointJog()
| moveit_pro::behaviors::JointJog::JointJog (const std::string & name, const BT::NodeConfiguration & config, const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > & shared_resources) |
|
Public Member Functions
getPlanningSceneMonitor()
| std::shared_ptr< moveit_pro::planning_scene_monitor::PlanningSceneMonitor > moveit_pro::behaviors::JointJog::getPlanningSceneMonitor () |
|
inline
|
onHalted()
| void moveit_pro::behaviors::JointJog::onHalted () |
|
onRunning()
| BT::NodeStatus moveit_pro::behaviors::JointJog::onRunning () |
|
onStart()
| BT::NodeStatus moveit_pro::behaviors::JointJog::onStart () |
|
setParametersFromJointVelocityController()
| void moveit_pro::behaviors::JointJog::setParametersFromJointVelocityController (std::string_view joint_model_group_name, const Eigen::VectorXd & controller_max_joint_acceleration, const Eigen::VectorXd & controller_max_joint_velocity) |
|
Private Member Functions
handleParameterProcessing()
| tl::expected< void, BT::NodeStatus > moveit_pro::behaviors::JointJog::handleParameterProcessing () |
|
processParameters()
| tl::expected< void, std::string > moveit_pro::behaviors::JointJog::processParameters () |
|
sceneUpdateCallback()
| void moveit_pro::behaviors::JointJog::sceneUpdateCallback (const moveit_pro::planning_scene_monitor::PlanningSceneMonitor::SceneUpdateType & update_type) |
|
stopController()
| void moveit_pro::behaviors::JointJog::stopController () |
|
validateInputs()
| tl::expected< void, std::string > moveit_pro::behaviors::JointJog::validateInputs () |
|
Private Member Attributes
command_mutex_
| std::shared_mutex moveit_pro::behaviors::JointJog::command_mutex_ |
|
mutable
|
command_publisher_
| std::shared_ptr<rclcpp::Publisher<control_msgs::msg::JointJog> > moveit_pro::behaviors::JointJog::command_publisher_ |
|
command_subscriber_
| std::shared_ptr<rclcpp::Subscription<control_msgs::msg::JointJog> > moveit_pro::behaviors::JointJog::command_subscriber_ |
|
controller_max_joint_acceleration_
| Eigen::VectorXd moveit_pro::behaviors::JointJog::controller_max_joint_acceleration_ |
|
controller_max_joint_velocity_
| Eigen::VectorXd moveit_pro::behaviors::JointJog::controller_max_joint_velocity_ |
|
controller_name_
| std::string moveit_pro::behaviors::JointJog::controller_name_ |
|
include_octomap_
| bool moveit_pro::behaviors::JointJog::include_octomap_ = false |
|
joint_model_group_
| const moveit_pro::base::JointModelGroup* moveit_pro::behaviors::JointJog::joint_model_group_ = nullptr |
|
joint_model_group_name_
| std::string moveit_pro::behaviors::JointJog::joint_model_group_name_ |
|
joint_velocity_controller_parameter_client
| std::shared_ptr<rclcpp::Client<rcl_interfaces::srv::GetParameters> > moveit_pro::behaviors::JointJog::joint_velocity_controller_parameter_client |
|
jvc_parameter_mutex_
| std::mutex moveit_pro::behaviors::JointJog::jvc_parameter_mutex_ |
|
latest_command_
| control_msgs::msg::JointJog moveit_pro::behaviors::JointJog::latest_command_ |
|
link_padding_
| double moveit_pro::behaviors::JointJog::link_padding_ = 0.0 |
|
main_scene_subscriber_
| std::shared_ptr<rclcpp::Subscription<moveit_msgs::msg::PlanningScene> > moveit_pro::behaviors::JointJog::main_scene_subscriber_ |
|
parameters_processed_
| bool moveit_pro::behaviors::JointJog::parameters_processed_ = false |
|
parameters_received_
| bool moveit_pro::behaviors::JointJog::parameters_received_ = false |
|
planning_scene_monitor_
| std::shared_ptr<moveit_pro::planning_scene_monitor::PlanningSceneMonitor> moveit_pro::behaviors::JointJog::planning_scene_monitor_ |
|
skip_collision_checks_
| bool moveit_pro::behaviors::JointJog::skip_collision_checks_ = false |
|
start_time_
| rclcpp::Time moveit_pro::behaviors::JointJog::start_time_ |
|
state_prediction_valid_
| std::atomic<bool> moveit_pro::behaviors::JointJog::state_prediction_valid_ = true |
|
stop_robot_state_
| std::unique_ptr<moveit_pro::base::RobotState> moveit_pro::behaviors::JointJog::stop_robot_state_ |
|
stop_safety_factor_
| double moveit_pro::behaviors::JointJog::stop_safety_factor_ = 1.0 |
|
time_last_command_forwarded_
| rclcpp::Time moveit_pro::behaviors::JointJog::time_last_command_forwarded_ |
|
time_last_command_processed_
| rclcpp::Time moveit_pro::behaviors::JointJog::time_last_command_processed_ |
|
time_last_command_received_
| rclcpp::Time moveit_pro::behaviors::JointJog::time_last_command_received_ |
|
Public Static Functions
metadata()
| BT::KeyValueVector moveit_pro::behaviors::JointJog::metadata () |
|
static
|
providedPorts()
| BT::PortsList moveit_pro::behaviors::JointJog::providedPorts () |
|
static
|
Public Static Attributes
kPortIdControllerName
| constexpr auto moveit_pro::behaviors::JointJog::kPortIdControllerName = "controller_name" |
|
constexpr
static
|
kPortIdIncludeOctomap
| constexpr auto moveit_pro::behaviors::JointJog::kPortIdIncludeOctomap = "include_octomap" |
|
constexpr
static
|
kPortIdLinkPadding
| constexpr auto moveit_pro::behaviors::JointJog::kPortIdLinkPadding = "link_padding" |
|
constexpr
static
|
kPortIdSkipCollisionChecks
| constexpr auto moveit_pro::behaviors::JointJog::kPortIdSkipCollisionChecks = "skip_collision_checks" |
|
constexpr
static
|
kPortIdStopSafetyFactor
| constexpr auto moveit_pro::behaviors::JointJog::kPortIdStopSafetyFactor = "stop_safety_factor" |
|
constexpr
static
|
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.