Hi, I’m writing a node to control multiple servos, and I want it to set back to its home position when I shut it down.
I’m using rclcpp::onshutdown(Ps5Node::shutdown_callback) for this need, but I failed to publish any topic in this static shutdown_callback function. Does anyone have an example code for me to study?
ROS Discourse is for general discussions, not for debugging of issues or asking for help.
We ask that you please open questions like this on our central Q&A site at Newest 'ros' Questions - Robotics Stack Exchange . Make sure to include a lot of information on what platform you are using, which ROS distribution you are using, and the exact steps you took.