Fix 394 (#419)
* copy and assignment operator for state copy and assignment operator for transition remove unused const_casts address comments check for null in copy constructor up use init and fini functions from rcl remove unused include * explicitly zero initialize state and transitions * add todo comment for follow up
This commit is contained in:
parent
c40f3c25c6
commit
6d13bcb0fc
6 changed files with 286 additions and 6 deletions
|
@ -44,9 +44,15 @@ public:
|
|||
const rcl_lifecycle_state_t * rcl_lifecycle_state_handle,
|
||||
rcutils_allocator_t allocator = rcutils_get_default_allocator());
|
||||
|
||||
RCLCPP_LIFECYCLE_PUBLIC
|
||||
State(const State & rhs);
|
||||
|
||||
RCLCPP_LIFECYCLE_PUBLIC
|
||||
virtual ~State();
|
||||
|
||||
RCLCPP_LIFECYCLE_PUBLIC
|
||||
State & operator=(const State & rhs);
|
||||
|
||||
RCLCPP_LIFECYCLE_PUBLIC
|
||||
uint8_t
|
||||
id() const;
|
||||
|
|
|
@ -51,9 +51,15 @@ public:
|
|||
const rcl_lifecycle_transition_t * rcl_lifecycle_transition_handle,
|
||||
rcutils_allocator_t allocator = rcutils_get_default_allocator());
|
||||
|
||||
RCLCPP_LIFECYCLE_PUBLIC
|
||||
Transition(const Transition & rhs);
|
||||
|
||||
RCLCPP_LIFECYCLE_PUBLIC
|
||||
virtual ~Transition();
|
||||
|
||||
RCLCPP_LIFECYCLE_PUBLIC
|
||||
Transition & operator=(const Transition & rhs);
|
||||
|
||||
RCLCPP_LIFECYCLE_PUBLIC
|
||||
uint8_t
|
||||
id() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue