Skip to content

[Hybrid Planning] WIP: Address review#718

Closed
sjahr wants to merge 88 commits intomoveit:feature/hybrid_planningfrom
sjahr:pr-address_hp_review
Closed

[Hybrid Planning] WIP: Address review#718
sjahr wants to merge 88 commits intomoveit:feature/hybrid_planningfrom
sjahr:pr-address_hp_review

Conversation

@sjahr
Copy link
Copy Markdown
Contributor

@sjahr sjahr commented Oct 3, 2021

Description

Address reviews of #488

@sjahr sjahr force-pushed the pr-address_hp_review branch from 9763273 to 9bcf1b4 Compare October 3, 2021 11:23
Comment on lines +71 to +84
# Install libraries
install(TARGETS ${LIBRARIES}
EXPORT export_${PROJECT_NAME}
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION lib/${PROJECT_NAME}
RUNTIME DESTINATION bin
INCLUDES DESTINATION include)

# Install binary
install(TARGETS hybrid_planning_test_node
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
DESTINATION lib/${PROJECT_NAME}
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can convert this into one install command like this (@JafarAbdi showed me this):

install(
  TARGETS 
    ${LIBRARIES}
    hybrid_planning_test_node
  EXPORT ${PROJECT_NAME}Targets
  ARCHIVE DESTINATION lib
  LIBRARY DESTINATION lib
  RUNTIME DESTINATION lib/${PROJECT_NAME}
  INCLUDES DESTINATION include
)

install(DIRECTORY test/config DESTINATION share/${PROJECT_NAME})

ament_export_include_directories(include)
ament_export_libraries(export_${PROJECT_NAME})
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ament_export_libraries(export_${PROJECT_NAME})
ament_export_libraries(${PROJECT_NAME}Targets)

@JafarAbdi pointed out to me that this naming convention is more standard cmake than the export_ prefix we have been using.

else
{
initialized_ = this->init();
initialized_ = this->initialize();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tried the changes to initialize in the constructor instead of in a timer?

@sjahr sjahr force-pushed the pr-address_hp_review branch from 9bcf1b4 to 975fc1e Compare October 14, 2021 14:48
@AndyZe
Copy link
Copy Markdown
Member

AndyZe commented Oct 14, 2021

This currently doesn't work for me. Same for you?

ros2 launch moveit_hybrid_planning hybrid_planning.launch.py

[rviz2-3] [INFO] [1634226190.040198790] [moveit_robot_model.robot_model]: Loading robot model 'panda'...
[rviz2-3] [INFO] [1634226190.377771555] [moveit_rdf_loader.rdf_loader]: Loaded robot model in 0.00141904 seconds
[rviz2-3] [INFO] [1634226190.377805126] [moveit_robot_model.robot_model]: Loading robot model 'panda'...
[rviz2-3] [ERROR] [1634226190.384232534] [moveit_background_processing.background_processing]: Exception caught while processing action 'loadRobotModel': std::bad_alloc

@sjahr
Copy link
Copy Markdown
Contributor Author

sjahr commented Oct 15, 2021

This currently doesn't work for me. Same for you?

ros2 launch moveit_hybrid_planning hybrid_planning.launch.py

[rviz2-3] [INFO] [1634226190.040198790] [moveit_robot_model.robot_model]: Loading robot model 'panda'...
[rviz2-3] [INFO] [1634226190.377771555] [moveit_rdf_loader.rdf_loader]: Loaded robot model in 0.00141904 seconds
[rviz2-3] [INFO] [1634226190.377805126] [moveit_robot_model.robot_model]: Loading robot model 'panda'...
[rviz2-3] [ERROR] [1634226190.384232534] [moveit_background_processing.background_processing]: Exception caught while processing action 'loadRobotModel': std::bad_alloc

No sorry, I have not experienced this error. Could you send the whole terminal output?

@sjahr
Copy link
Copy Markdown
Contributor Author

sjahr commented Oct 15, 2021

This currently doesn't work for me. Same for you?
ros2 launch moveit_hybrid_planning hybrid_planning.launch.py

[rviz2-3] [INFO] [1634226190.040198790] [moveit_robot_model.robot_model]: Loading robot model 'panda'...
[rviz2-3] [INFO] [1634226190.377771555] [moveit_rdf_loader.rdf_loader]: Loaded robot model in 0.00141904 seconds
[rviz2-3] [INFO] [1634226190.377805126] [moveit_robot_model.robot_model]: Loading robot model 'panda'...
[rviz2-3] [ERROR] [1634226190.384232534] [moveit_background_processing.background_processing]: Exception caught while processing action 'loadRobotModel': std::bad_alloc

No sorry, I have not experienced this error. Could you send the whole terminal output?

@AndyZe Just guessing: It might be related to this missing patch #734 which fixes a potential deadlock situation. Could you try to rebase on main?

@sjahr sjahr force-pushed the pr-address_hp_review branch from 975fc1e to a371886 Compare October 19, 2021 07:17
tylerjw and others added 3 commits October 20, 2021 16:11
Alphabetize in CMakeLists

Load filter coefficient in the new plugin

Do filtering in the plugin

Implement 'reset'

Purge the previous filter implementation

Fix parameter parsing

Update unit tests

Clang format

Code cleanup. This causes an issue with reset() -- need to look into it

Do not use const for size_t

Fix logic error

Sync config files

Alphabetize moveit_core subdirectories

Move the smoothing plugin to moveit_core

Bug fixes

Load the plugin name from yaml

Remove commented code. Rename the plugin in a generic way

Minor cleanup. Delete unused file.

Minor cleanup per Nathan's code review

Implement a filteredHalt() function

Rename the package from smoothing_plugins->online_signal_smoothing

Small comments and efficiency improvement

Add Butterworth plugin package export

Add default constructor for SmoothingBaseClass

Add missing pluginlib dependency to moveit_servo

Skeleton of the smoothing plugin

Load filter coefficient in the new plugin

Do filtering in the plugin

Implement 'reset'

Purge the previous filter implementation

Fix parameter parsing

Clang format

Code cleanup. This causes an issue with reset() -- need to look into it

Do not use const for size_t

Fix logic error

Alphabetize moveit_core subdirectories

Move the smoothing plugin to moveit_core

Bug fixes

Load the plugin name from yaml

Remove commented code. Rename the plugin in a generic way

Minor cleanup. Delete unused file.

Minor cleanup per Nathan's code review

Rename the package from smoothing_plugins->online_signal_smoothing

Logic fixups, per Nathan

Delete default constructor/destructor

Post-rebase cleanup

Try moving the base class to a separate library

Ensure we don't pulish pos if user did not request it (& vel & accel)

Try to fix CI for galactic, in particular

Restore default constructor and destructor.
@sjahr sjahr force-pushed the pr-address_hp_review branch from 09615b8 to 494b4db Compare October 28, 2021 13:47
@tylerjw
Copy link
Copy Markdown
Member

tylerjw commented Oct 29, 2021

Closing in favor of #763

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants