mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
Printing success log only if execution completes
Previous code will print/log "Execution complete" even if the execution was disabled.
This commit is contained in:
parent
de79dedbfc
commit
8588deb202
@ -121,6 +121,7 @@ int main(int argc, char** argv) {
|
|||||||
ROS_INFO_NAMED(LOGNAME, "Planning succeded");
|
ROS_INFO_NAMED(LOGNAME, "Planning succeded");
|
||||||
if (pnh.param("execute", false)) {
|
if (pnh.param("execute", false)) {
|
||||||
pick_place_task.execute();
|
pick_place_task.execute();
|
||||||
|
ROS_INFO_NAMED(LOGNAME, "Execution complete");
|
||||||
} else {
|
} else {
|
||||||
ROS_INFO_NAMED(LOGNAME, "Execution disabled");
|
ROS_INFO_NAMED(LOGNAME, "Execution disabled");
|
||||||
}
|
}
|
||||||
@ -128,8 +129,6 @@ int main(int argc, char** argv) {
|
|||||||
ROS_INFO_NAMED(LOGNAME, "Planning failed");
|
ROS_INFO_NAMED(LOGNAME, "Planning failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
ROS_INFO_NAMED(LOGNAME, "Execution complete");
|
|
||||||
|
|
||||||
// Keep introspection alive
|
// Keep introspection alive
|
||||||
ros::waitForShutdown();
|
ros::waitForShutdown();
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user