rename RCL_LIFECYCLE_RET_T to lifecycle_msgs::msgs::Transition::TRANSITION_CALLBACK_* (#345)
This commit is contained in:
parent
a41245e6bf
commit
9281e32f82
8 changed files with 156 additions and 116 deletions
|
@ -12,46 +12,48 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "lifecycle_msgs/msg/transition.hpp"
|
||||
|
||||
#include "rclcpp_lifecycle/node_interfaces/lifecycle_node_interface.hpp"
|
||||
|
||||
namespace rclcpp_lifecycle
|
||||
{
|
||||
namespace node_interfaces
|
||||
{
|
||||
rcl_lifecycle_ret_t
|
||||
rcl_lifecycle_transition_key_t
|
||||
LifecycleNodeInterface::on_configure(const State &)
|
||||
{
|
||||
return RCL_LIFECYCLE_RET_OK;
|
||||
return lifecycle_msgs::msg::Transition::TRANSITION_CALLBACK_SUCCESS;
|
||||
}
|
||||
|
||||
rcl_lifecycle_ret_t
|
||||
rcl_lifecycle_transition_key_t
|
||||
LifecycleNodeInterface::on_cleanup(const State &)
|
||||
{
|
||||
return RCL_LIFECYCLE_RET_OK;
|
||||
return lifecycle_msgs::msg::Transition::TRANSITION_CALLBACK_SUCCESS;
|
||||
}
|
||||
|
||||
rcl_lifecycle_ret_t
|
||||
rcl_lifecycle_transition_key_t
|
||||
LifecycleNodeInterface::on_shutdown(const State &)
|
||||
{
|
||||
return RCL_LIFECYCLE_RET_OK;
|
||||
return lifecycle_msgs::msg::Transition::TRANSITION_CALLBACK_SUCCESS;
|
||||
}
|
||||
|
||||
rcl_lifecycle_ret_t
|
||||
rcl_lifecycle_transition_key_t
|
||||
LifecycleNodeInterface::on_activate(const State &)
|
||||
{
|
||||
return RCL_LIFECYCLE_RET_OK;
|
||||
return lifecycle_msgs::msg::Transition::TRANSITION_CALLBACK_SUCCESS;
|
||||
}
|
||||
|
||||
rcl_lifecycle_ret_t
|
||||
rcl_lifecycle_transition_key_t
|
||||
LifecycleNodeInterface::on_deactivate(const State &)
|
||||
{
|
||||
return RCL_LIFECYCLE_RET_OK;
|
||||
return lifecycle_msgs::msg::Transition::TRANSITION_CALLBACK_SUCCESS;
|
||||
}
|
||||
|
||||
rcl_lifecycle_ret_t
|
||||
rcl_lifecycle_transition_key_t
|
||||
LifecycleNodeInterface::on_error(const State &)
|
||||
{
|
||||
return RCL_LIFECYCLE_RET_FAILURE;
|
||||
return lifecycle_msgs::msg::Transition::TRANSITION_CALLBACK_FAILURE;
|
||||
}
|
||||
|
||||
} // namespace node_interfaces
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue