-
Notifications
You must be signed in to change notification settings - Fork 532
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
Port planning_request_adapter_plugins to ROS2 #114
Port planning_request_adapter_plugins to ROS2 #114
Conversation
Fix .travis.yml and README.md:
moveit_ros/planning/planning_request_adapter_plugins/CMakeLists.txt
Outdated
Show resolved
Hide resolved
moveit_ros/planning/planning_request_adapter_plugins/CMakeLists.txt
Outdated
Show resolved
Hide resolved
moveit_ros/planning/planning_request_adapter_plugins/CMakeLists.txt
Outdated
Show resolved
Hide resolved
moveit_ros/planning/planning_request_adapter_plugins/CMakeLists.txt
Outdated
Show resolved
Hide resolved
moveit_ros/planning/planning_request_adapter_plugins/src/add_time_parameterization.cpp
Outdated
Show resolved
Hide resolved
@@ -49,23 +49,34 @@ class FixStartStateBounds : public planning_request_adapter::PlanningRequestAdap | |||
static const std::string BOUNDS_PARAM_NAME; | |||
static const std::string DT_PARAM_NAME; | |||
|
|||
FixStartStateBounds() : planning_request_adapter::PlanningRequestAdapter(), nh_("~") | |||
void initialize(std::shared_ptr<rclcpp::Node>& node) |
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.
This should be added in the next sync and with the original commits + modification.
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.
@henningkayser I saw there was a PR about this in the original MoveIt repository. Do you mean to still use a private node in the constructor for now, and move the parameter lookup into initialize
in future?
moveit_ros/planning/planning_request_adapter_plugins/src/fix_start_state_bounds.cpp
Outdated
Show resolved
Hide resolved
{ | ||
if (!nh_.getParam(BOUNDS_PARAM_NAME, bounds_dist_)) | ||
this->node_ = node; |
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.
Initialize using the copy constructor
66ab9aa
to
571ef43
Compare
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.
The changes look good so far. However, the history is broken and this branch includes features that have not been synced yet. It might be cleaner to rebase this on a synced version later on
moveit_ros/planning/planning_request_adapter_plugins/src/add_time_optimal_parameterization.cpp
Outdated
Show resolved
Hide resolved
@@ -72,6 +74,6 @@ int main(int argc, char** argv) | |||
std::cout << " \t\t " << ad->getDescription() << std::endl; | |||
std::cout << std::endl << std::endl; | |||
} | |||
|
|||
rclcpp::shutdown(); |
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.
Isn't this redundant?
571ef43
to
37dcf4c
Compare
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.
Nice, it compiles, great work! I'm wondering if COLCON_IGNORE
is actually still needed, the top-level CMakeLists should eliminate all commented subdirectories, and colcon doesn't look for nested packages recursively as far as I now.
moveit_ros/planning/planning_request_adapter_plugins/CMakeLists.txt
Outdated
Show resolved
Hide resolved
moveit_ros/planning/planning_request_adapter_plugins/src/add_time_optimal_parameterization.cpp
Outdated
Show resolved
Hide resolved
6e16142
to
587321b
Compare
I run the executable through |
587321b
to
9fc78a9
Compare
The segfault seems come from a legacy build of moveit_core. After I removed everything in the /build folder and recompiled the workspace, the segfault disappeared. |
9fc78a9
to
250c638
Compare
250c638
to
9e702c2
Compare
1f93e41
to
3fb93d2
Compare
No description provided.