pcg_gazebo.task_manager
pcg_gazebo.task_manager¶
This module holds all entities related to task scheduling and stages.
is_roscore_running¶
is_roscore_running(ros_master_uri='http://localhost:11311')
roscore
is running for the provided ROS URI
Input parameters
ros_master_uri
(type:str
, default: (http://localhost:11311
)): The ROS URI of the targetroscore
node to be tested
is_gazebo_running¶
is_gazebo_running(ros_master_uri='http://localhost:11311')
Input parameters
ros_master_uri
(type:str
, default: (http://localhost:11311
)): The ROS URI of the target node to be tested
get_rosparam_list¶
get_rosparam_list(ros_master_uri='http://localhost:11311')
roscore
is
running, return None
instead.
Input parameters
ros_master_uri
(type:str
, default: (http://localhost:11311
)): The ROS URI of the target node to be tested
get_rostopic_list¶
get_rostopic_list(ros_master_uri='http://localhost:11311')
roscore
is running, return None
instead.
Input parameters
ros_master_uri
(type:str
, default: (http://localhost:11311
)): The ROS URI of the target node to be tested
get_rosservice_list¶
get_rosservice_list(ros_master_uri='http://localhost:11311')
roscore
is running, return None
instead.
Input parameters
ros_master_uri
(type:str
, default: (http://localhost:11311
)): The ROS URI of the target node to be tested
GazeboProxy¶
GazeboProxy(self,
ros_host='localhost',
ros_port=11311,
gazebo_host='localhost',
gazebo_port=11345,
timeout=30,
ignore_services=None)
ProcessManager¶
ProcessManager(self,
label='default',
ros_host='localhost',
ros_port=11311,
gazebo_host='localhost',
gazebo_port=11345,
output_log_dir=None)
ROSConfig¶
ROSConfig(self,
ros_host='localhost',
ros_port=11311,
gazebo_host='localhost',
gazebo_port=11345)
Server¶
Server(self)
SimulationTimer¶
SimulationTimer(self,
simulation_timeout=0,
start_gazebo_timeout=60,
ros_config=None,
output_log_dir=None,
callback=None)
Stage¶
Stage(self, name)
Task¶
Task(self,
task_name,
command,
params,
config,
has_gazebo=False,
type=None,
required=False,
process_timeout=None,
task_killed_callback=None,
stage=None,
output_log_dir=None,
simulation_timeout=None)