Class PerceptionModule

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

  • public rclcpp_lifecycle::LifecycleNode

Class Documentation

class PerceptionModule : public rclcpp_lifecycle::LifecycleNode

Public Types

using PerceptionStereoVisionSetup = psdk_interfaces::srv::PerceptionStereoVisionSetup

Public Functions

explicit PerceptionModule(const std::string &name)

Construct a new PerceptionModule object.

Parameters:

node_name – Name of the node

~PerceptionModule()

Destroy the PerceptionModule object.

CallbackReturn on_configure(const rclcpp_lifecycle::State &state)

Configures the PerceptionModule. Creates the ROS 2 subscribers and services.

Parameters:

state – rclcpp_lifecycle::State. Current state of the node.

Returns:

CallbackReturn SUCCESS or FAILURE

CallbackReturn on_activate(const rclcpp_lifecycle::State &state)

Activates the PerceptionModule.

Parameters:

state – rclcpp_lifecycle::State. Current state of the node.

Returns:

CallbackReturn SUCCESS or FAILURE

CallbackReturn on_cleanup(const rclcpp_lifecycle::State &state)

Cleans the PerceptionModule. Resets the ROS 2 subscribers and services.

Parameters:

state – rclcpp_lifecycle::State. Current state of the node.

Returns:

CallbackReturn SUCCESS or FAILURE

CallbackReturn on_deactivate(const rclcpp_lifecycle::State &state)

Deactivates the PerceptionModule.

Parameters:

state – rclcpp_lifecycle::State. Current state of the node.

Returns:

CallbackReturn SUCCESS or FAILURE

CallbackReturn on_shutdown(const rclcpp_lifecycle::State &state)

Shuts down the PerceptionModule.

Parameters:

state – rclcpp_lifecycle::State. Current state of the node.

Returns:

CallbackReturn SUCCESS or FAILURE

bool init()

Initialize the PerceptionModule.

Returns:

true/false

bool deinit()

Deinitialize the PerceptionModule.

Returns:

true/false

Public Members

PerceptionParams params_
struct PerceptionParams

Public Members

std::string perception_camera_frame