mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
enable introspection only if ROS was initialized
This commit is contained in:
parent
bd60e6f65d
commit
35b35cc17e
@ -55,7 +55,8 @@ Task::Task(const std::string& id, ContainerBase::pointer &&container)
|
||||
{
|
||||
// monitor state on commandline
|
||||
//addTaskCallback(std::bind(&Task::printState, this, std::ref(std::cout)));
|
||||
// enable introspection by default
|
||||
// enable introspection by default, but only if ros::init() was called
|
||||
if (ros::isInitialized())
|
||||
enableIntrospection(true);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user