◆ LifecycleNodeManager()
LifecycleNodeManager::LifecycleNodeManager |
( |
const std::string & |
node_name | ) |
|
|
inlineexplicit |
Subscribtion for control node. Subscribtion for slave feedback values acquired from connected slaves.
◆ change_state()
bool LifecycleNodeManager::change_state |
( |
std::uint8_t |
transition | ) |
|
|
inline |
Invokes a transition.
We send a Service request and indicate that we want to invoke transition with the id "transition". By default, these transitions are
- configure
- activate
- cleanup
- shutdown
- Parameters
-
transition | id specifying which transition to invoke |
time_out | Duration in seconds specifying how long we wait for a response before returning unknown state |
◆ get_state()
unsigned int LifecycleNodeManager::get_state |
( |
| ) |
|
|
inline |
Requests the current state of the node.
In this function, we send a service request asking for the current state of the node ecat_node. If it does return within the given time_out, we return the current state of the node, if not, we return an unknown state.
- Parameters
-
time_out | Duration in seconds specifying how long we wait for a response before returning unknown state |
◆ HandleGuiNodeCallbacks()
void LifecycleNodeManager::HandleGuiNodeCallbacks |
( |
const ecat_msgs::msg::GuiButtonData::SharedPtr |
msg | ) |
|
|
inline |
◆ HandleLifecycleNodeCallbacks()
void LifecycleNodeManager::HandleLifecycleNodeCallbacks |
( |
const ecat_msgs::msg::DataReceived::SharedPtr |
msg | ) |
|
|
inline |
◆ init()
void LifecycleNodeManager::init |
( |
| ) |
|
|
inline |
◆ client_change_state_
std::shared_ptr<rclcpp::Client<lifecycle_msgs::srv::ChangeState> > LifecycleNodeManager::client_change_state_ |
|
private |
◆ client_get_state_
std::shared_ptr<rclcpp::Client<lifecycle_msgs::srv::GetState> > LifecycleNodeManager::client_get_state_ |
|
private |
◆ controller_
◆ gui_button_subscriber_
rclcpp::Subscription<ecat_msgs::msg::GuiButtonData>::SharedPtr LifecycleNodeManager::gui_button_subscriber_ |
◆ joystick_subscriber_
rclcpp::Subscription<sensor_msgs::msg::Joy>::SharedPtr LifecycleNodeManager::joystick_subscriber_ |
◆ lifecycle_node_data_
ecat_msgs::msg::DataReceived LifecycleNodeManager::lifecycle_node_data_ |
◆ lifecycle_node_subscriber_
rclcpp::Subscription<ecat_msgs::msg::DataReceived>::SharedPtr LifecycleNodeManager::lifecycle_node_subscriber_ |
The documentation for this class was generated from the following file: