farol_bringup_algorithms::FarolSetup::FarolSetup
Public Functions
Name | |
---|---|
def | init(self self, vehicle_name vehicle_name, vehicle_id vehicle_id, config_package_path config_package_path, folder folder, namespace namespace, vehicle_configuration vehicle_configuration =None) |
def | publish_process_state(self self, event event) |
def | callback_manage_process(self self, req req) |
def | clean_ros_processes(self self) |
def | create_processes(self self) |
def | start_init_processes(self self) |
def | start_all_processes(self self) |
def | stop_all_processes(self self) |
def | get_process_from_name(self self, name name) |
def | get_dependency_process_list(self self, process process) |
def | are_dependencies_met(self self, process process) |
def | check_and_start_dependencies(self self, process process) |
def | start_process(self self, p p, start_dependencies start_dependencies =False) |
def | start_process_from_name(self self, name name, start_dependencies start_dependencies =False) |
def | stop_process_from_name(self self, name name) |
def | restart_process_from_name(self self, name name) |
def | kill_process_from_name(self self, name name) |
def | find_replace(self self, topdir topdir, file_pattern file_pattern, text text, replacement replacement) |
def | create_response(status status, message message) |
def | stop_process(p p) |
def | restart_process(p p) |
def | kill_process(p p) |
def | isNotEmpty(path path) |
Public Attributes
Public Functions Documentation
function init
def __init__(
self self,
vehicle_name vehicle_name,
vehicle_id vehicle_id,
config_package_path config_package_path,
folder folder,
namespace namespace,
vehicle_configuration vehicle_configuration =None
)
function publish_process_state
def publish_process_state(
self self,
event event
)
function callback_manage_process
def callback_manage_process(
self self,
req req
)
function clean_ros_processes
def clean_ros_processes(
self self
)
function create_processes
def create_processes(
self self
)
function start_init_processes
def start_init_processes(
self self
)
function start_all_processes
def start_all_processes(
self self
)
function stop_all_processes
def stop_all_processes(
self self
)
function get_process_from_name
def get_process_from_name(
self self,
name name
)
function get_dependency_process_list
def get_dependency_process_list(
self self,
process process
)
function are_dependencies_met
def are_dependencies_met(
self self,
process process
)
function check_and_start_dependencies
def check_and_start_dependencies(
self self,
process process
)
function start_process
def start_process(
self self,
p p,
start_dependencies start_dependencies =False
)
function start_process_from_name
def start_process_from_name(
self self,
name name,
start_dependencies start_dependencies =False
)
function stop_process_from_name
def stop_process_from_name(
self self,
name name
)
function restart_process_from_name
def restart_process_from_name(
self self,
name name
)
function kill_process_from_name
def kill_process_from_name(
self self,
name name
)
function find_replace
def find_replace(
self self,
topdir topdir,
file_pattern file_pattern,
text text,
replacement replacement
)
Replace the string #vehicle# with the desired vehicle name
:param topdir: directory with rostopics name parameters to be checked
:param file_pattern: In this case .yaml
:param text: string to be replaced
:param replacement: chosen string (vehicle_name)
function create_response
static def create_response(
status status,
message message
)
function stop_process
static def stop_process(
p p
)
function restart_process
static def restart_process(
p p
)
function kill_process
static def kill_process(
p p
)
function isNotEmpty
static def isNotEmpty(
path path
)
Check if folder exists and is not empty
:param path: directory with parameters to be checked
Public Attributes Documentation
variable vehicle_name
vehicle_name;
variable config_package_path
config_package_path;
variable folder
folder;
variable namespace
namespace;
variable vehicle_configuration
vehicle_configuration;
variable process_list
process_list;
variable process_config
process_config;
variable vehicle_id
vehicle_id;
variable vehicle_name_id
vehicle_name_id;
variable rospack
rospack;
variable config_specific_path
config_specific_path;
variable process_state_publish_rate
process_state_publish_rate;
variable process_state_publisher
process_state_publisher;
variable manage_process_server
manage_process_server;
Updated on 2024-03-07 at 10:30:47 +0000
Last update:
March 7, 2024