Skip to content
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

moveit_core background processing - #82

Merged
merged 2 commits into from
May 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion moveit_core/background_processing/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set(MOVEIT_LIB_NAME moveit_background_processing)

add_library(${MOVEIT_LIB_NAME} src/background_processing.cpp)
add_library(${MOVEIT_LIB_NAME} SHARED src/background_processing.cpp)
set_target_properties(${MOVEIT_LIB_NAME} PROPERTIES VERSION "${${PROJECT_NAME}_VERSION}")

target_link_libraries(${MOVEIT_LIB_NAME}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace moveit
namespace tools
{
// Logger
rclcpp::Logger LOGGER = rclcpp::get_logger("background_processing");
rclcpp::Logger LOGGER_BACKGROUND_PROCESSING = rclcpp::get_logger("background_processing");

BackgroundProcessing::BackgroundProcessing()
{
Expand Down Expand Up @@ -80,13 +80,14 @@ void BackgroundProcessing::processingThread()
action_lock_.unlock();
try
{
RCLCPP_DEBUG(LOGGER, "Begin executing '%s'", action_name.c_str());
RCLCPP_DEBUG(LOGGER_BACKGROUND_PROCESSING, "Begin executing '%s'", action_name.c_str());
fn();
RCLCPP_DEBUG(LOGGER, "Done executing '%s'", action_name.c_str());
RCLCPP_DEBUG(LOGGER_BACKGROUND_PROCESSING, "Done executing '%s'", action_name.c_str());
}
catch (std::exception& ex)
{
RCLCPP_ERROR(LOGGER, "Exception caught while processing action '%s': %s", action_name.c_str(), ex.what());
RCLCPP_ERROR(LOGGER_BACKGROUND_PROCESSING, "Exception caught while processing action '%s': %s",
action_name.c_str(), ex.what());
}
processing_ = false;
if (queue_change_event_)
Expand Down