|
MoveIt Pro API
Core Behaviors for MoveIt Pro
|
Switches the primary view in the MoveIt Studio Developer Tool. More...
#include <switch_ui_primary_view.hpp>


Public Member Functions | |
| SwitchUIPrimaryView (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources) | |
| BT::NodeStatus | tick () override |
| Publishes the requested view name to the UI topic. | |
Public Member Functions inherited from moveit_studio::behaviors::SharedResourcesNode< BT::SyncActionNode > | |
| SharedResourcesNode (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< BehaviorContext > &shared_resources) | |
| Constructor for SharedResourcesNode. Called by BT::BehaviorTreeFactory when creating a new behavior tree containing this node. | |
Static Public Member Functions | |
| static BT::PortsList | providedPorts () |
| Required implementation of the static providedPorts function. | |
| static BT::KeyValueVector | metadata () |
| Adds metadata, such as description and subcategory, to the Behavior. | |
Additional Inherited Members | |
Protected Attributes inherited from moveit_studio::behaviors::SharedResourcesNode< BT::SyncActionNode > | |
| std::shared_ptr< BehaviorContext > | shared_resources_ |
Switches the primary view in the MoveIt Studio Developer Tool.
This can be "Visualization", "Behavior Tree", or the name of any valid camera topic available in the view dropdown menu in the UI.
This behavior publishes the requested view name to a topic, allowing the frontend to update when ready. This is a fire-and-forget operation - the behavior returns SUCCESS immediately after publishing.
| Data Port Name | Port Type | Object Type |
|---|---|---|
| primary_view_name | input | std::string |
|
explicit |
|
static |
Adds metadata, such as description and subcategory, to the Behavior.
|
static |
Required implementation of the static providedPorts function.
|
override |
Publishes the requested view name to the UI topic.