From 9073c7a014ee1c0cda21db325db8ccc335e84368 Mon Sep 17 00:00:00 2001 From: Ettore Landini Date: Wed, 11 Dec 2024 12:38:23 +0100 Subject: [PATCH] Fix resources paths in app files Signed-off-by: Ettore Landini --- .../conf/cyclone_dds_sim_settings.xml | 17 +++++++++++++++++ .../scripts/Navigation_ROS2_R1_SIM_office.xml | 12 ++++++------ app/navigation2/scripts/start_sim_madama.sh | 2 +- .../conf/robotInterface/audioTranscribe.xml | 2 +- 4 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 app/navigation2/conf/cyclone_dds_sim_settings.xml diff --git a/app/navigation2/conf/cyclone_dds_sim_settings.xml b/app/navigation2/conf/cyclone_dds_sim_settings.xml new file mode 100644 index 0000000..0adf759 --- /dev/null +++ b/app/navigation2/conf/cyclone_dds_sim_settings.xml @@ -0,0 +1,17 @@ + + + + false + + + + + + 30 + auto + + + + + + diff --git a/app/navigation2/scripts/Navigation_ROS2_R1_SIM_office.xml b/app/navigation2/scripts/Navigation_ROS2_R1_SIM_office.xml index fdc4b06..2c24988 100644 --- a/app/navigation2/scripts/Navigation_ROS2_R1_SIM_office.xml +++ b/app/navigation2/scripts/Navigation_ROS2_R1_SIM_office.xml @@ -8,7 +8,7 @@ ros2_launch.sh robot_state_publisher.launch.py use_sim_time:=true - /home/user1/tour-guide-robot/app/navigation2/launch/ + $ENV{ROBOT_CODE}/tour-guide-robot/app/navigation2/launch/ console @@ -21,7 +21,7 @@ ./set_navigation_position_sim.sh - /home/user1/tour-guide-robot/app/navigation2/scripts/ + $ENV{ROBOT_CODE}/tour-guide-robot/app/navigation2/scripts/ console @@ -46,7 +46,7 @@ ros2_launch.sh amcl.launch.py use_sim_time:=true - /home/user1/tour-guide-robot/app/navigation2/launch/ + $ENV{ROBOT_CODE}/tour-guide-robot/app/navigation2/launch/ console @@ -58,8 +58,8 @@ ros2_launch.sh - navigation.launch.py use_sim_time:=true params_file:=/home/user1/tour-guide-robot/app/navigation2/conf/nav2_params.yaml - /home/user1/tour-guide-robot/app/navigation2/launch/ + navigation.launch.py use_sim_time:=true params_file:=$ENV{ROBOT_CODE}/tour-guide-robot/app/navigation2/conf/nav2_params.yaml + $ENV{ROBOT_CODE}/tour-guide-robot/app/navigation2/launch/ console @@ -78,7 +78,7 @@ rviz2 -d r1_visualizer.rviz --ros-args --remap use_sim_time:=true - /home/user1/tour-guide-robot/app/navigation2/conf/ + $ENV{ROBOT_CODE}/tour-guide-robot/app/navigation2/conf/ console diff --git a/app/navigation2/scripts/start_sim_madama.sh b/app/navigation2/scripts/start_sim_madama.sh index 3bb4846..2e68003 100755 --- a/app/navigation2/scripts/start_sim_madama.sh +++ b/app/navigation2/scripts/start_sim_madama.sh @@ -1,6 +1,6 @@ yarpserver & sleep 1; -ros2 launch gazebo_ros gazebo.launch.py extra_gazebo_args:=-slibgazebo_yarp_clock.so world:=/home/user1/tour-guide-robot/app/maps/SIM_MADAMA/madama.world & +ros2 launch gazebo_ros gazebo.launch.py extra_gazebo_args:=-slibgazebo_yarp_clock.so world:=/usr/local/src/robot/tour-guide-robot/app/maps/SIM_MADAMA/madama.world & sleep 1; yarprun --server /console --log & sleep 1; diff --git a/app/speechPipeline/conf/robotInterface/audioTranscribe.xml b/app/speechPipeline/conf/robotInterface/audioTranscribe.xml index 07b5f48..f649f6c 100644 --- a/app/speechPipeline/conf/robotInterface/audioTranscribe.xml +++ b/app/speechPipeline/conf/robotInterface/audioTranscribe.xml @@ -10,7 +10,7 @@ - /home/user1/yarp-device-speechTranscription-whisper/build/share/WhisperTranscribe/contexts/whisperTranscribe_demo/ggml-base.en.bin/ggml-base.en.bin + /usr/local/src/robot/yarp-device-speechTranscription-whisper/build/share/WhisperTranscribe/contexts/whisperTranscribe_demo/ggml-base.en.bin/ggml-base.en.bin