-
Notifications
You must be signed in to change notification settings - Fork 119
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
Move planning_ros_msgs to be an external dependency #160
Conversation
Can you also post links to the new packages? |
Great! Thanks, Laura. Once you add to the external and fix the CI issue, I will clean-build and test it on my side, before we merge. |
9b00f8c
to
7357511
Compare
OK, @XuRobotics and @versatran01 , sorry leaving this open for so long, but I think it is ready for a test. The only thing remaining that I did not do is move https://github.com/KumarRobotics/kr_planning_msgs/blob/main/kr_planning_rviz_plugins/include/kr_planning_rviz_plugins/data_ros_utils.h and https://github.com/KumarRobotics/kr_planning_msgs/blob/main/kr_planning_rviz_plugins/src/utils/data_ros_utils.cpp to somewhere more logical/remove them from kr_planning_msgs repo. But I can do that if you think it shouldn't be merged without that. |
Also I assume the docker build github action should be run? I'm not sure how to trigger that? |
This is too big for a proper review. Since it's just moving stuff around, if it builds and works we can go ahead and merge it. This data_type.h shows up in 3 different places. This is extremely bad design and should be fixed if possible (not in this PR of course, but later). |
I think you mean https://github.com/KumarRobotics/kr_autonomous_flight/blob/master/autonomy_core/map_plan/mpl/include/mpl_basis/data_type.h as the 3rd one |
Yes, I agree...On the other hand there's only little name alias statements in that file. The easiest solution would be one copy in kr_planning_msgs, which doesn't make too much sense. But sounds good if we're punting that for later. |
I will add a namespace for data_ros_utils |
116162c
to
07fd9e2
Compare
This is just a personal preference but the namespace kr_planning_rviz_plugins has 24 characters and is a bit too long. |
Sure, I don't feel strongly In the meanwhile I have discovered a small rviz bug that I will resolve before we merge |
@ljarin any updates on this? Is this ready to merge? |
I found a bug in the rviz plug-in right before I left. Will address this weekend, sorry 😔 |
Ping @ljarin |
* rename planning_ros_utils -> kr_planning_rviz_plugins * remove both of the above from kr_autonomous flight (todo: add to external repos) * move primitive_ros_utils (converts btw MPL and kr_planning_msgs) to the action_planner since it is only used there * still todo: data_type.h (defines common datatypes like Vec3f) and data_ros_utils (random data conversions) should not live in kr_planning_rviz_plugins, and should be in some common location. data_type is also copied from mpl/jps. state_machine, action_trackers, and action_planner are the packages that use data_ros_utils
07fd9e2
to
5e3e565
Compare
as requested in KumarRobotics/kr_autonomous_flight#160 Remove dep on motion_primitive_library
Under the principle of better late than never... I think this is now working. The changes needed were in https://github.com/KumarRobotics/kr_planning_msgs so the only change to this PR was rebasing to master and changing the namespace name.
To remind you, this was decoupling the messages and RViz plugins from MPL so that you don't have to build the whole autonomy stack in order to use the messages/develop a separate package, which is my use case. Since MPL is no longer part of the Rviz plugins, I had to add back functions to calculate the position/velocity/etc. of the primitive. |
So I finally reimplemented the missing visualization features (https://github.com/KumarRobotics/kr_planning_msgs), would it be possible to give this a try @XuRobotics @fcladera ? |
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.
Tested gazebo full simulation with MPL.
In order to address #133, it is useful for the messages used by the planner to be independent from the rest of the stack so that kr_mav_control can link against them.