Repository navigation
[tf2] cherry pick: Move some packages to tf2 - #752
mikeferguson merged 1 commit into
Conversation
This cherry-picks commit 144cae29 Conflicts: base_local_planner/package.xml base_local_planner/src/trajectory_planner_ros.cpp carrot_planner/package.xml global_planner/src/orientation_filter.cpp Author: Vincent Rabaud <[email protected]> Date: Mon Oct 24 22:08:55 2016 +0200
|
@mikeferguson & @DLu, cherry-picking this looked like low hanging fruit for: |
|
It looks like #458 could similarly be cherry-picked or rebased into melodic. It was just a bigger conflict list so I didn't do it last night. |
|
How have you tested this? I have yet to have a TF2 PR for the costmaps/planners that actually worked on a robot (or in sim). |
|
@mikeferguson I did some basic system level testing of this indirectly by launching: https://github.com/fetchrobotics/fetch_ros/blob/melodic-devel/fetch_navigation/launch/fetch_nav.launch and giving it some nav goals... It seemed okay. I didn't test the carrot_planner ;) But I didn't do any side by side testing to compare the differences with and without this PR. I'm currently cherry-picking the #458 changes and can do some more testing when done that. |
|
FYI: @jcmayoral, @oscar-lima, if you have time to give this some more testing on other hardware. |
There was a problem hiding this comment.
Ok -- so this just does the planners -- I can confirm that this is working for me (on simulated robot).
If I recall correctly, costmap2d is where things got wonky -- but somehow I missed that we can do these planners separately from costmap2d.
I'm gonna give this some additional comment time (til monday) before I merge.
| @@ -18,6 +18,7 @@ find_package(catkin REQUIRED | |||
| rospy | |||
| std_msgs | |||
| tf | |||
There was a problem hiding this comment.
shouldn't we be getting rid of this if we are moving to tf2?
|
@moriarty do you plan on having time to work on the costmap2d -> tf2 part? If not, perhaps we'll move forward with a Melodic release without that conversion having been done, and push that to N-turtle. |
|
@mikeferguson yes I have been testing this and also was trying to get @vrabaud's other branch from #458 which does the rest of the tf2 changes... I was busy on something else during the week and that's why I tagged two other ppl who I thought might be able to try it out in their labs. I was hoping to finish this weekend, sorry for the delay, I got side tracked with two other issues... occasionally https://github.com/ros-perception/slam_karto crashes on loop closure, and the PS3 Joy isn't great at the moment. Here is the line you mentioned above: |
|
Just a note -- the crash on loop closure may not be all that new if it is intermittent... |
|
I confirm it works for us in real robot and simulation, but under kinetic (we do not have melodic) #531 |
|
Sorry for the delay. I tested on simulation and works well (under kinetic). |
|
I checked this branch out and gave it some more testing on the hardware in a clean ros workspace. |
|
My comment about cost maps was that the costmap2d package is still using TF, having not yet been ported to TF2. I've previously worked on this a bit, but had issues trying to port it to TF2. Thank you to all for the feedback -- I'd say this is probably the most tested PR we've had recently. |
|
@mikeferguson, 👍 yes cherry-picking the other change with all the changes for melodic at the same time in my workspace led to some pain... I'll give it another shot now that this one is merged. |
|
thanks @jcmayoral && @oscar-lima for testing ;) but you should upgrade to 18.04 & Melodic 😆 |
|
Not sure why -- but CI timed out after merging this. http://build.ros.org/job/Mdev__navigation__ubuntu_bionic_amd64/14/ I've retriggered to see if is a Jenkins thing... |
|
@mikeferguson I will look into it |
|
My fault... sorry I've gotten use to tests being run on the branches of pull requests... gtest-all.cc:(.text._ZNK7testing8internal11ThreadLocalIPNS_31TestPartResultReporterInterfaceEE16GetOrCreateValueEv[_ZNK7testing8internal11ThreadLocalIPNS_31TestPartResultReporterInterfaceEE16GetOrCreateValueEv]+0x88): undefined reference to `pthread_setspecific' With this change, 14/15 tests have passed and AMCL is still running |
adds -lpthread in front of all calls to catkin_add_gtest With this the tests all pass locally, without they can't find symbols. Should fix why the CI timed out after merging ros-planning#752.
adds -lpthread in front of all calls to catkin_add_gtest With this the tests all pass locally, without they can't find symbols. Should fix why the CI timed out after merging ros-planning#752.
| geometry_msgs::PoseStamped new_goal = goal; | ||
| tf::Quaternion goal_quat = tf::createQuaternionFromYaw(target_yaw); | ||
| tf2::Quaternion goal_quat; | ||
| goal_quat.setEuler(target_yaw, 0, 0); |
There was a problem hiding this comment.
This is one potential issue -- it looks like internally createQuaternionFromYaw() called setRPY(). In TF2 -- setEuler() is different from SetRPY() or SetEulerZYX() which internally calls SetRPY()
| { | ||
| return tf::getYaw(pose.pose.orientation); | ||
| tf2::Quaternion q; | ||
| q.setEuler( angle, 0, 0 ); |
There was a problem hiding this comment.
again, I think this should be SetRPY possibly?
There was a problem hiding this comment.
I can verify that changing q.setEuler( angle, 0, 0 ); to q.setRPY(0, 0, angle); works. This fixes #760
| pose.pose.position.y = p_y; | ||
| pose.pose.position.z = 0.0; | ||
| tf2::Quaternion q; | ||
| q.setEuler(p_th, 0, 0); |
There was a problem hiding this comment.
same note -- setRPY might be the correct thing here?







This cherry-picks commit 144cae29
#531 from @vrabaud which targeted Kinetic.
I fixed the conflicts.
Conflicts:
base_local_planner/package.xml
base_local_planner/src/trajectory_planner_ros.cpp
carrot_planner/package.xml
global_planner/src/orientation_filter.cpp
Author: Vincent Rabaud
Date: Mon Oct 24 22:08:55 2016 +0200