From c84936c32e6693d45f350b8e18e1a97fe2a593b0 Mon Sep 17 00:00:00 2001 From: RonaldsonBellande Date: Sat, 24 May 2025 19:08:04 -0400 Subject: [PATCH] example packages --- example/brsoa_system_config.lua | 82 +++++++++++++++++++ ...e.bellos => create_example_package.bellos} | 0 scripts/create_example_system_config.bellos | 2 + 3 files changed, 84 insertions(+) create mode 100644 example/brsoa_system_config.lua rename scripts/{example_package.bellos => create_example_package.bellos} (100%) create mode 100755 scripts/create_example_system_config.bellos diff --git a/example/brsoa_system_config.lua b/example/brsoa_system_config.lua new file mode 100644 index 0000000..3f23b3d --- /dev/null +++ b/example/brsoa_system_config.lua @@ -0,0 +1,82 @@ +-- brsoa_system_config.lua +-- Global configuration +global_config = { + max_nodes = 50, + discovery_method = "broadcast", + system_name = "example_system", + log_level = "debug" +} + +-- Define nodes to be launched +nodes = { + { + name = "example_node_cpp", + package = "example_package_cpp", + executable = "example_driver_cpp", + language = "cpp", + args = {"--fps=30"}, + env = {SENSOR_TYPE = "lidar"} + }, + { + name = "example_node_py", + package = "example_package_py", + executable = "example_package_py.py", + language = "python", + args = {"--algorithm=detection"}, + env = {PYTHONPATH = "${WORKSPACE}/lib:${WORKSPACE}/include"} + }, + { + name = "example_node_java", + package = "example_ui_package_java", + executable = "ExampleDisplayAppJava", + language = "java", + args = {"--resolution=720p"}, + env = {JAVA_OPTS = "-Xmx1g"} + }, + { + name = "example_node_rust", + package = "example_package_rust", + executable = "example_package_rust", + language = "rust", + args = {"--mode=manual"}, + env = {RUST_BACKTRACE = "1"} + }, + { + name = "example_node_bridge_go", + package = "example_package_go", + executable = "example_package_go", + language = "go", + args = {"--port=9090"}, + env = {GOMAXPROCS = "2"} + } +} + +-- Define communication setup +topics = { + { + name = "/example/example", + type = "Example", + queue_size = 5, + publishers = {"example_node"}, + subscribers = {"example1", "example2"} + } +} + +-- Define services +services = { + { + name = "/example/example", + type = "Example", + server = "example_server", + clients = {"example_client"} + } +} + +-- Define parameters +parameters = { + { + name = "/example/example", + type = "string", + value = global_config.system_name + } +} \ No newline at end of file diff --git a/scripts/example_package.bellos b/scripts/create_example_package.bellos similarity index 100% rename from scripts/example_package.bellos rename to scripts/create_example_package.bellos diff --git a/scripts/create_example_system_config.bellos b/scripts/create_example_system_config.bellos new file mode 100755 index 0000000..69e189c --- /dev/null +++ b/scripts/create_example_system_config.bellos @@ -0,0 +1,2 @@ +# System Config +python3 ../src/brsoa_create_system_config.py