-
Notifications
You must be signed in to change notification settings - Fork 396
Filling index
field in feedback message of the action interface
#1850
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
Filling index
field in feedback message of the action interface
#1850
Conversation
index
field in feedback message of the action interface
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.
Thanks a lot. Except for the conversion error below, this looks very good. Testing in existing testcases is fine.
/home/runner/work/ros2_controllers/ros2_controllers/.work/target_ws/src/ros2_controllers/joint_trajectory_controller/src/joint_trajectory_controller.cpp:239:37: error: implicit conversion changes signedness: 'typename iterator_traits<__normal_iterator<const JointTrajectoryPoint_<allocator<void>> *, vector<JointTrajectoryPoint_<allocator<void>>>>>::difference_type' (aka 'long') to 'const size_t' (aka 'const unsigned long') [-Werror,-Wsign-conversion]
239 | const size_t next_point_index = std::distance(current_trajectory_->begin(), end_segment_itr);
| ~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Implicit conversion problem has been fixed. However, I had a test failure that I was not capable to reproduce in the little time I had today: Even if the |
I don't think that this relates, I can't imagine now why this should happen. but the failing jazzy test now shows the same?
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1850 +/- ##
==========================================
+ Coverage 85.92% 85.93% +0.01%
==========================================
Files 133 133
Lines 13148 13165 +17
Branches 1145 1145
==========================================
+ Hits 11297 11314 +17
Misses 1480 1480
Partials 371 371
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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.
/home/runner/work/ros2_controllers/ros2_controllers/.work/target_ws/src/ros2_controllers/joint_trajectory_controller/test/test_trajectory_actions.cpp:211:12: error: implicit conversion changes signedness: 'typename iterator_traits<__normal_iterator<const double *, vector<double>>>::difference_type' (aka 'long') to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
211 | return std::distance(
| ~~~~~~ ^~~~~~~~~~~~~~
212 | times_vector.begin(),
| ~~~~~~~~~~~~~~~~~~~~~
213 | std::lower_bound(times_vector.begin(), times_vector.end(), time_in_seconds));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There was a logic error in my implementation, now it works! |
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.
Thanks, now LGTM
Thanks! Do you understand why the pipelines are failing? It looks like the failure is in the |
not related at all, moveit packages are not available |
Should I do something extra to get this merged? |
83fceac
into
ros-controls:master
Hi everyone!
I took this task from the good-first-issue here: #1742
According to the new field description in the .action file, this looks like working for me.
The only doubt I have is about testing, I don't know if this change is worth a test case.
Looking forward to have reviews 😄