-
Notifications
You must be signed in to change notification settings - Fork 504
fix: reset header stamps to zero in reset methods to prevent timeout #2197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Ishan1923
wants to merge
36
commits into
ros-controls:master
Choose a base branch
from
Ishan1923:fix/1774-reset-header-stamps
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
d433d58
fix: reset header stamps to zero in reset methods to prevent timeout …
Ishan1923 50b2493
fix: change reset_controller_reference_msg signature to remove unused…
Ishan1923 cc93ee3
style: pre-commit run
Ishan1923 42104e3
test: halt robot to clear wheel feedback before odometry reset test
Ishan1923 1eb067b
Merge branch 'master' into fix/1774-reset-header-stamps
christophfroehlich fad4d2e
Fix segfault in jtc if joint name not in urdf (#2321)
InigoMoreno 7debce0
Update changelogs
christophfroehlich 36e0276
6.6.0
christophfroehlich 4aaf4e7
[rqt_jtc] Use urdf_parser_py (#2254)
lakhmanisahil 6643956
Remove deprecated controller specializations (#2016)
christophfroehlich e8be012
fix JTC userdoc YAML indentation and stray quote (#2327)
ahmedbilal9 fdd51ae
diff_drive: set parameters as read_only or dynamically update them (#…
kamal2730 bdd8433
fix(joint_state_broadcaster): suppress confusing warning for standard…
greencookie-afk c794ba6
Bump C++ version to C++20 (#2331)
christophfroehlich 8dc4de0
Remove deprecated odometry reset methods (#2252)
kuralme 52997cb
Remove deprecated publish_rate from diff_drive_controller (#2259)
Bhavin-umatiya 9a48b94
fix: correct ASSERT_EQ to ASSERT_NE in admittance controller load tes…
SouriRishik 2b34b67
Bump version of pre-commit hooks (#2337)
github-actions[bot] 83b2641
added warning messages when unable to remap the interface properly in…
sviridovm cd4e227
Suppress cppcheck errors from macros from version.h (#2346)
christophfroehlich 7554821
Add lyrical workflows, update README, and fix gcc-15 issues (#2344)
christophfroehlich 5d808d6
Update changelogs
christophfroehlich 567c1a6
6.7.0
christophfroehlich 7fdd9ea
More general initialization of state from command (#2294)
peter-mitrano-ar 5e0f88c
Test fix - call appropriate lifecycle transitions in controller tests…
jsantoso91 a8bfbb0
[JSB] Remove dynamic_joint_states and use INDIVIDUAL_BEST_EFFORT for …
saikishor ee5bab0
Added velocity limiting to the mecanum controller. (#2313)
tonybaltovski d5ec4be
[JTC] Fix segfault when last trajectory segment is skipped (#2359)
dparikh79 aa4079f
Fix motion_primitive_controller TOC in docs (#2221)
SouriRishik b074eb4
Remove broken toctree entries for deleted position/velocity controlle…
bmagyar ad79f26
Add broadcaster for magnetic field values from a magnetometer (#2214)
christianrauch e89c342
Fix SPDX license expression (#2370)
ShivamMaurya14 54893c2
fix: resolve merge conflict in mecanum_drive_controller
Ishan1923 fb0b8e0
fix: resolve merge conflicts
Ishan1923 e29f848
fix: pass correct arguments for move_robot()
Ishan1923 f4ed8b0
Merge branch 'master' into fix/1774-reset-header-stamps
christophfroehlich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -644,7 +644,7 @@ void DiffDriveController::reset_buffers() | |||||
|
|
||||||
| // 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); | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| command_msg_.twist.linear.x = std::numeric_limits<double>::quiet_NaN(); | ||||||
| command_msg_.twist.linear.y = std::numeric_limits<double>::quiet_NaN(); | ||||||
| command_msg_.twist.linear.z = std::numeric_limits<double>::quiet_NaN(); | ||||||
|
|
||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -34,10 +34,9 @@ void print_interface(const rclcpp::Logger & logger, const T & command_interfaces | |||||
| } | ||||||
|
|
||||||
| // called from RT control loop | ||||||
| void reset_controller_reference_msg( | ||||||
| gpio_controllers::CmdType & msg, const std::shared_ptr<rclcpp_lifecycle::LifecycleNode> & node) | ||||||
| void reset_controller_reference_msg(gpio_controllers::CmdType & msg) | ||||||
| { | ||||||
| msg.header.stamp = node->now(); | ||||||
| msg.header.stamp = rclcpp::Time(0); | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| msg.interface_groups.clear(); | ||||||
| msg.interface_values.clear(); | ||||||
| } | ||||||
|
|
@@ -147,7 +146,7 @@ CallbackReturn GpioCommandController::on_activate(const rclcpp_lifecycle::State | |||||
|
|
||||||
| initialize_gpio_state_msg(); | ||||||
| // Set default value in command | ||||||
| reset_controller_reference_msg(gpio_commands_, get_node()); | ||||||
| reset_controller_reference_msg(gpio_commands_); | ||||||
| rt_command_.try_set(gpio_commands_); | ||||||
| RCLCPP_INFO(get_node()->get_logger(), "activate successful"); | ||||||
| return CallbackReturn::SUCCESS; | ||||||
|
|
@@ -156,7 +155,7 @@ CallbackReturn GpioCommandController::on_activate(const rclcpp_lifecycle::State | |||||
| CallbackReturn GpioCommandController::on_deactivate(const rclcpp_lifecycle::State &) | ||||||
| { | ||||||
| // Set default value in command | ||||||
| reset_controller_reference_msg(gpio_commands_, get_node()); | ||||||
| reset_controller_reference_msg(gpio_commands_); | ||||||
| rt_command_.try_set(gpio_commands_); | ||||||
| return CallbackReturn::SUCCESS; | ||||||
| } | ||||||
|
|
||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this is needed, seems like default is systemtime?