fix: reset header stamps to zero in reset methods to prevent timeout#2197
fix: reset header stamps to zero in reset methods to prevent timeout#2197Ishan1923 wants to merge 36 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2197 +/- ##
==========================================
+ Coverage 85.61% 85.62% +0.01%
==========================================
Files 148 148
Lines 15837 15850 +13
Branches 1339 1341 +2
==========================================
+ Hits 13559 13572 +13
Misses 1792 1792
Partials 486 486
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
@christophfroehlich The function signatures have been updated for the
|
|
This pull request is in conflict. Could you fix it @Ishan1923? |
…bypass Signed-off-by: Ishan1923 <ecdev4ishan@gmail.com>
Signed-off-by: Ishan1923 <ecdev4ishan@gmail.com>
28d2417 to
cc93ee3
Compare
Signed-off-by: Ishan1923 <ecdev4ishan@gmail.com>
|
@christophfroehlich, @thedevmystic would you please have a look at this.
|
… Joint State Broadcaster. (ros-controls#2082) Co-authored-by: Sai Kishor Kothakota <saisastra3@gmail.com> Co-authored-by: Christoph Fröhlich <christophfroehlich@users.noreply.github.com> Co-authored-by: Surya! <thedevmystic@gmail.com>
…: admittance_controller, pose_broadcaster, tricycle_steering_controller (ros-controls#2345)
|
This pull request is in conflict. Could you fix it @Ishan1923? |
Signed-off-by: Ishan1923 <ecdev4ishan@gmail.com>
Signed-off-by: Ishan1923 <ecdev4ishan@gmail.com>
|
@christophfroehlich @thedevmystic merge conflict in mecanum_drive_controller.cpp has been resolved and pushed. Could you please take a look? |
@Ishan1923 The CI builds are failing. Can you please take a look? |
|
The CI is clearly unhappy still. Please ignore the main binary jobs but semi binaries and testing binaries should pass |
The code is not building for this error, can you take a look? |
Signed-off-by: Ishan1923 <ecdev4ishan@gmail.com>
The move_robot() function only takes 2 arguments: the error was from passing three arguments to it : |
The semi-binary(s) failures are infra failures :-
could you please confirm these are known infra issues |
christophfroehlich
left a comment
There was a problem hiding this comment.
The 4 remaining failing jobs are known and not related.
Changes from this PR LGTM.
| void reset_wrench_msg(geometry_msgs::msg::WrenchStamped & msg) | ||
| { | ||
| msg.header.stamp = node->now(); | ||
| msg.header.stamp = rclcpp::Time(0); |
There was a problem hiding this comment.
| msg.header.stamp = rclcpp::Time(0); | |
| msg.header.stamp = rclcpp::Time(0, node->get_clock()->get_clock_type()); |
Maybe this is needed, seems like default is systemtime?
| // Fill RealtimeBox with NaNs so it will contain a known value | ||
| // but still indicate that no command has yet been sent. | ||
| command_msg_.header.stamp = get_node()->now(); | ||
| command_msg_.header.stamp = rclcpp::Time(0); |
There was a problem hiding this comment.
| command_msg_.header.stamp = rclcpp::Time(0); | |
| command_msg_.header.stamp = rclcpp::Time(0, node->get_clock()->get_clock_type()); |
| void reset_controller_reference_msg(gpio_controllers::CmdType & msg) | ||
| { | ||
| msg.header.stamp = node->now(); | ||
| msg.header.stamp = rclcpp::Time(0); |
There was a problem hiding this comment.
| msg.header.stamp = rclcpp::Time(0); | |
| msg.header.stamp = rclcpp::Time(0, node->get_clock()->get_clock_type()); |
Problem: When controllers reset their internal reference messages, the initialization functions assigned the current time (now()) to the new empty message's timestamp. This caused the message 'age' calculation to yield 0 seconds, which allowed the empty message to bypass safety timeout checks.
Solution:
Affected Controllers:
fix #1774