Conversation
destogl
left a comment
There was a problem hiding this comment.
Just a few small suggestions. Let me know what do you think about them. Thanks!
| }); | ||
|
|
||
| RCLCPP_INFO_STREAM(get_node()->get_logger(), "configure successful"); | ||
| RCLCPP_INFO(get_node()->get_logger(), "configure successful"); |
There was a problem hiding this comment.
When you are already editing this, can you take a look at the following use?
| RCLCPP_INFO(get_node()->get_logger(), "configure successful"); | |
| RCLCPP_INFO(node_->get_logger(), "configure successful"); |
| if ((*joint_commands)->data.size() != command_interfaces_.size()) { | ||
| RCLCPP_ERROR_STREAM_THROTTLE( | ||
| RCLCPP_ERROR_THROTTLE( | ||
| get_node()->get_logger(), |
There was a problem hiding this comment.
| get_node()->get_logger(), | |
| node_->get_logger(), |
|
I am wondering if there's a way to use logging properly without the bloat of |
Co-authored-by: Denis Štogl <destogl@users.noreply.github.com>
|
As I recall, the I think the cleanest and most standard is to stick with the |
* remove controller loader abstraction layer * Fix reload_controller_libraries_srv test * Remove remaining comments * Remove remaining mock Signed-off-by: Karsten Knese <Karsten1987@users.noreply.github.com> Co-authored-by: Mateus Amarante <mateus.amarujo@gmail.com>
Similar to ros-controls/ros2_control#391
We rarely use the
_STREAMvariants of RCLCPP logging, so we might as well just avoid them altogether to avoid thestd::stringstream.While I was in there, I also corrected the printf format for
size_t. We previously had a mix of%dand%u. For correctness and portability, it should be%zu, which is specifically forsize_ts.