Setup initial qt plugin demo
This commit is contained in:
@ -0,0 +1 @@
|
||||
/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/build/rqt_demo_plugin/ament_cmake_index/share/ament_index/resource_index/package_run_dependencies/rqt_demo_plugin
|
||||
@ -0,0 +1 @@
|
||||
/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/build/rqt_demo_plugin/ament_cmake_index/share/ament_index/resource_index/packages/rqt_demo_plugin
|
||||
@ -0,0 +1 @@
|
||||
/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/build/rqt_demo_plugin/ament_cmake_index/share/ament_index/resource_index/parent_prefix_path/rqt_demo_plugin
|
||||
@ -0,0 +1 @@
|
||||
/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/build/rqt_demo_plugin/ament_cmake_index/share/ament_index/resource_index/rqt_gui__pluginlib__plugin/rqt_demo_plugin
|
||||
@ -0,0 +1 @@
|
||||
pluginlib:rclcpp:rqt:rqt_gui_cpp
|
||||
@ -0,0 +1 @@
|
||||
/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/build/rqt_demo_plugin/ament_cmake_export_libraries/ament_cmake_export_libraries-extras.cmake
|
||||
@ -0,0 +1 @@
|
||||
/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/build/rqt_demo_plugin/ament_cmake_export_targets/ament_cmake_export_targets-extras.cmake
|
||||
@ -0,0 +1,19 @@
|
||||
#----------------------------------------------------------------
|
||||
# Generated CMake target import file.
|
||||
#----------------------------------------------------------------
|
||||
|
||||
# Commands may need to know the format version.
|
||||
set(CMAKE_IMPORT_FILE_VERSION 1)
|
||||
|
||||
# Import target "rqt_demo_plugin::rqt_demo_plugin" for configuration ""
|
||||
set_property(TARGET rqt_demo_plugin::rqt_demo_plugin APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
|
||||
set_target_properties(rqt_demo_plugin::rqt_demo_plugin PROPERTIES
|
||||
IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib/librqt_demo_plugin.so"
|
||||
IMPORTED_SONAME_NOCONFIG "librqt_demo_plugin.so"
|
||||
)
|
||||
|
||||
list(APPEND _cmake_import_check_targets rqt_demo_plugin::rqt_demo_plugin )
|
||||
list(APPEND _cmake_import_check_files_for_rqt_demo_plugin::rqt_demo_plugin "${_IMPORT_PREFIX}/lib/librqt_demo_plugin.so" )
|
||||
|
||||
# Commands beyond this point should not need to know the version.
|
||||
set(CMAKE_IMPORT_FILE_VERSION)
|
||||
@ -0,0 +1,109 @@
|
||||
# Generated by CMake
|
||||
|
||||
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
|
||||
message(FATAL_ERROR "CMake >= 2.8.0 required")
|
||||
endif()
|
||||
if(CMAKE_VERSION VERSION_LESS "2.8.3")
|
||||
message(FATAL_ERROR "CMake >= 2.8.3 required")
|
||||
endif()
|
||||
cmake_policy(PUSH)
|
||||
cmake_policy(VERSION 2.8.3...3.26)
|
||||
#----------------------------------------------------------------
|
||||
# Generated CMake target import file.
|
||||
#----------------------------------------------------------------
|
||||
|
||||
# Commands may need to know the format version.
|
||||
set(CMAKE_IMPORT_FILE_VERSION 1)
|
||||
|
||||
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
|
||||
set(_cmake_targets_defined "")
|
||||
set(_cmake_targets_not_defined "")
|
||||
set(_cmake_expected_targets "")
|
||||
foreach(_cmake_expected_target IN ITEMS rqt_demo_plugin::rqt_demo_plugin)
|
||||
list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
|
||||
if(TARGET "${_cmake_expected_target}")
|
||||
list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
|
||||
else()
|
||||
list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
|
||||
endif()
|
||||
endforeach()
|
||||
unset(_cmake_expected_target)
|
||||
if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
|
||||
unset(_cmake_targets_defined)
|
||||
unset(_cmake_targets_not_defined)
|
||||
unset(_cmake_expected_targets)
|
||||
unset(CMAKE_IMPORT_FILE_VERSION)
|
||||
cmake_policy(POP)
|
||||
return()
|
||||
endif()
|
||||
if(NOT _cmake_targets_defined STREQUAL "")
|
||||
string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
|
||||
string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
|
||||
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
|
||||
endif()
|
||||
unset(_cmake_targets_defined)
|
||||
unset(_cmake_targets_not_defined)
|
||||
unset(_cmake_expected_targets)
|
||||
|
||||
|
||||
# Compute the installation prefix relative to this file.
|
||||
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
||||
if(_IMPORT_PREFIX STREQUAL "/")
|
||||
set(_IMPORT_PREFIX "")
|
||||
endif()
|
||||
|
||||
# Create imported target rqt_demo_plugin::rqt_demo_plugin
|
||||
add_library(rqt_demo_plugin::rqt_demo_plugin SHARED IMPORTED)
|
||||
|
||||
set_target_properties(rqt_demo_plugin::rqt_demo_plugin PROPERTIES
|
||||
INTERFACE_COMPILE_DEFINITIONS "QT_CORE_LIB;QT_WIDGETS_LIB;QT_GUI_LIB;QT_QML_LIB;QT_NETWORK_LIB;QT_QUICK_LIB;QT_QMLMODELS_LIB"
|
||||
INTERFACE_COMPILE_FEATURES "c_std_99;cxx_std_17"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;/usr/include/x86_64-linux-gnu/qt5/;/usr/include/x86_64-linux-gnu/qt5/QtCore;/usr/lib/x86_64-linux-gnu/qt5//mkspecs/linux-g++;/usr/include/x86_64-linux-gnu/qt5/QtWidgets;/usr/include/x86_64-linux-gnu/qt5/QtGui;/usr/include/x86_64-linux-gnu/qt5/QtQml;/usr/include/x86_64-linux-gnu/qt5/QtNetwork;/usr/include/x86_64-linux-gnu/qt5/QtQuick;/usr/include/x86_64-linux-gnu/qt5/QtQmlModels"
|
||||
INTERFACE_LINK_LIBRARIES "rclcpp::rclcpp;pluginlib::pluginlib;rqt_gui_cpp::rqt_gui_cpp;qt_gui_cpp::qt_gui_cpp;Qt5::Core;Qt5::Widgets;Qt5::Qml;Qt5::Quick"
|
||||
)
|
||||
|
||||
if(CMAKE_VERSION VERSION_LESS 2.8.12)
|
||||
message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
|
||||
endif()
|
||||
|
||||
# Load information for each installed configuration.
|
||||
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/export_rqt_demo_pluginExport-*.cmake")
|
||||
foreach(_cmake_config_file IN LISTS _cmake_config_files)
|
||||
include("${_cmake_config_file}")
|
||||
endforeach()
|
||||
unset(_cmake_config_file)
|
||||
unset(_cmake_config_files)
|
||||
|
||||
# Cleanup temporary variables.
|
||||
set(_IMPORT_PREFIX)
|
||||
|
||||
# Loop over all imported files and verify that they actually exist
|
||||
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
|
||||
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
|
||||
if(NOT EXISTS "${_cmake_file}")
|
||||
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
|
||||
\"${_cmake_file}\"
|
||||
but this file does not exist. Possible reasons include:
|
||||
* The file was deleted, renamed, or moved to another location.
|
||||
* An install or uninstall procedure did not complete successfully.
|
||||
* The installation package was faulty and contained
|
||||
\"${CMAKE_CURRENT_LIST_FILE}\"
|
||||
but not all the files it references.
|
||||
")
|
||||
endif()
|
||||
endforeach()
|
||||
unset(_cmake_file)
|
||||
unset("_cmake_import_check_files_for_${_cmake_target}")
|
||||
endforeach()
|
||||
unset(_cmake_target)
|
||||
unset(_cmake_import_check_targets)
|
||||
|
||||
# This file does not depend on other imported targets which have
|
||||
# been exported from the same project but in a separate export set.
|
||||
|
||||
# Commands beyond this point should not need to know the version.
|
||||
set(CMAKE_IMPORT_FILE_VERSION)
|
||||
cmake_policy(POP)
|
||||
@ -0,0 +1 @@
|
||||
/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/build/rqt_demo_plugin/ament_cmake_core/rqt_demo_pluginConfig-version.cmake
|
||||
@ -0,0 +1 @@
|
||||
/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/build/rqt_demo_plugin/ament_cmake_core/rqt_demo_pluginConfig.cmake
|
||||
@ -0,0 +1 @@
|
||||
/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/build/rqt_demo_plugin/ament_cmake_environment_hooks/ament_prefix_path.dsv
|
||||
@ -0,0 +1 @@
|
||||
/opt/ros/jazzy/share/ament_cmake_core/cmake/environment_hooks/environment/ament_prefix_path.sh
|
||||
@ -0,0 +1 @@
|
||||
/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/build/rqt_demo_plugin/ament_cmake_environment_hooks/library_path.dsv
|
||||
@ -0,0 +1 @@
|
||||
/opt/ros/jazzy/lib/python3.12/site-packages/ament_package/template/environment_hook/library_path.sh
|
||||
@ -0,0 +1 @@
|
||||
/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/build/rqt_demo_plugin/ament_cmake_environment_hooks/path.dsv
|
||||
@ -0,0 +1 @@
|
||||
/opt/ros/jazzy/share/ament_cmake_core/cmake/environment_hooks/environment/path.sh
|
||||
@ -0,0 +1 @@
|
||||
prepend-non-duplicate;CMAKE_PREFIX_PATH;
|
||||
@ -0,0 +1,3 @@
|
||||
# generated from colcon_powershell/shell/template/hook_prepend_value.ps1.em
|
||||
|
||||
colcon_prepend_unique_value CMAKE_PREFIX_PATH "$env:COLCON_CURRENT_PREFIX"
|
||||
@ -0,0 +1,3 @@
|
||||
# generated from colcon_core/shell/template/hook_prepend_value.sh.em
|
||||
|
||||
_colcon_prepend_unique_value CMAKE_PREFIX_PATH "$COLCON_CURRENT_PREFIX"
|
||||
@ -0,0 +1 @@
|
||||
prepend-non-duplicate;LD_LIBRARY_PATH;lib
|
||||
@ -0,0 +1,3 @@
|
||||
# generated from colcon_powershell/shell/template/hook_prepend_value.ps1.em
|
||||
|
||||
colcon_prepend_unique_value LD_LIBRARY_PATH "$env:COLCON_CURRENT_PREFIX\lib"
|
||||
@ -0,0 +1,3 @@
|
||||
# generated from colcon_core/shell/template/hook_prepend_value.sh.em
|
||||
|
||||
_colcon_prepend_unique_value LD_LIBRARY_PATH "$COLCON_CURRENT_PREFIX/lib"
|
||||
1
install/rqt_demo_plugin/share/rqt_demo_plugin/local_setup.bash
Symbolic link
1
install/rqt_demo_plugin/share/rqt_demo_plugin/local_setup.bash
Symbolic link
@ -0,0 +1 @@
|
||||
/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/build/rqt_demo_plugin/ament_cmake_environment_hooks/local_setup.bash
|
||||
1
install/rqt_demo_plugin/share/rqt_demo_plugin/local_setup.dsv
Symbolic link
1
install/rqt_demo_plugin/share/rqt_demo_plugin/local_setup.dsv
Symbolic link
@ -0,0 +1 @@
|
||||
/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/build/rqt_demo_plugin/ament_cmake_environment_hooks/local_setup.dsv
|
||||
1
install/rqt_demo_plugin/share/rqt_demo_plugin/local_setup.sh
Symbolic link
1
install/rqt_demo_plugin/share/rqt_demo_plugin/local_setup.sh
Symbolic link
@ -0,0 +1 @@
|
||||
/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/build/rqt_demo_plugin/ament_cmake_environment_hooks/local_setup.sh
|
||||
1
install/rqt_demo_plugin/share/rqt_demo_plugin/local_setup.zsh
Symbolic link
1
install/rqt_demo_plugin/share/rqt_demo_plugin/local_setup.zsh
Symbolic link
@ -0,0 +1 @@
|
||||
/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/build/rqt_demo_plugin/ament_cmake_environment_hooks/local_setup.zsh
|
||||
39
install/rqt_demo_plugin/share/rqt_demo_plugin/package.bash
Normal file
39
install/rqt_demo_plugin/share/rqt_demo_plugin/package.bash
Normal file
@ -0,0 +1,39 @@
|
||||
# generated from colcon_bash/shell/template/package.bash.em
|
||||
|
||||
# This script extends the environment for this package.
|
||||
|
||||
# a bash script is able to determine its own path if necessary
|
||||
if [ -z "$COLCON_CURRENT_PREFIX" ]; then
|
||||
# the prefix is two levels up from the package specific share directory
|
||||
_colcon_package_bash_COLCON_CURRENT_PREFIX="$(builtin cd "`dirname "${BASH_SOURCE[0]}"`/../.." > /dev/null && pwd)"
|
||||
else
|
||||
_colcon_package_bash_COLCON_CURRENT_PREFIX="$COLCON_CURRENT_PREFIX"
|
||||
fi
|
||||
|
||||
# function to source another script with conditional trace output
|
||||
# first argument: the path of the script
|
||||
# additional arguments: arguments to the script
|
||||
_colcon_package_bash_source_script() {
|
||||
if [ -f "$1" ]; then
|
||||
if [ -n "$COLCON_TRACE" ]; then
|
||||
echo "# . \"$1\""
|
||||
fi
|
||||
. "$@"
|
||||
else
|
||||
echo "not found: \"$1\"" 1>&2
|
||||
fi
|
||||
}
|
||||
|
||||
# source sh script of this package
|
||||
_colcon_package_bash_source_script "$_colcon_package_bash_COLCON_CURRENT_PREFIX/share/rqt_demo_plugin/package.sh"
|
||||
|
||||
# setting COLCON_CURRENT_PREFIX avoids determining the prefix in the sourced scripts
|
||||
COLCON_CURRENT_PREFIX="$_colcon_package_bash_COLCON_CURRENT_PREFIX"
|
||||
|
||||
# source bash hooks
|
||||
_colcon_package_bash_source_script "$COLCON_CURRENT_PREFIX/share/rqt_demo_plugin/local_setup.bash"
|
||||
|
||||
unset COLCON_CURRENT_PREFIX
|
||||
|
||||
unset _colcon_package_bash_source_script
|
||||
unset _colcon_package_bash_COLCON_CURRENT_PREFIX
|
||||
11
install/rqt_demo_plugin/share/rqt_demo_plugin/package.dsv
Normal file
11
install/rqt_demo_plugin/share/rqt_demo_plugin/package.dsv
Normal file
@ -0,0 +1,11 @@
|
||||
source;share/rqt_demo_plugin/hook/cmake_prefix_path.ps1
|
||||
source;share/rqt_demo_plugin/hook/cmake_prefix_path.dsv
|
||||
source;share/rqt_demo_plugin/hook/cmake_prefix_path.sh
|
||||
source;share/rqt_demo_plugin/hook/ld_library_path_lib.ps1
|
||||
source;share/rqt_demo_plugin/hook/ld_library_path_lib.dsv
|
||||
source;share/rqt_demo_plugin/hook/ld_library_path_lib.sh
|
||||
source;share/rqt_demo_plugin/local_setup.bash
|
||||
source;share/rqt_demo_plugin/local_setup.dsv
|
||||
source;share/rqt_demo_plugin/local_setup.ps1
|
||||
source;share/rqt_demo_plugin/local_setup.sh
|
||||
source;share/rqt_demo_plugin/local_setup.zsh
|
||||
117
install/rqt_demo_plugin/share/rqt_demo_plugin/package.ps1
Normal file
117
install/rqt_demo_plugin/share/rqt_demo_plugin/package.ps1
Normal file
@ -0,0 +1,117 @@
|
||||
# generated from colcon_powershell/shell/template/package.ps1.em
|
||||
|
||||
# function to append a value to a variable
|
||||
# which uses colons as separators
|
||||
# duplicates as well as leading separators are avoided
|
||||
# first argument: the name of the result variable
|
||||
# second argument: the value to be prepended
|
||||
function colcon_append_unique_value {
|
||||
param (
|
||||
$_listname,
|
||||
$_value
|
||||
)
|
||||
|
||||
# get values from variable
|
||||
if (Test-Path Env:$_listname) {
|
||||
$_values=(Get-Item env:$_listname).Value
|
||||
} else {
|
||||
$_values=""
|
||||
}
|
||||
$_duplicate=""
|
||||
# start with no values
|
||||
$_all_values=""
|
||||
# iterate over existing values in the variable
|
||||
if ($_values) {
|
||||
$_values.Split(";") | ForEach {
|
||||
# not an empty string
|
||||
if ($_) {
|
||||
# not a duplicate of _value
|
||||
if ($_ -eq $_value) {
|
||||
$_duplicate="1"
|
||||
}
|
||||
if ($_all_values) {
|
||||
$_all_values="${_all_values};$_"
|
||||
} else {
|
||||
$_all_values="$_"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# append only non-duplicates
|
||||
if (!$_duplicate) {
|
||||
# avoid leading separator
|
||||
if ($_all_values) {
|
||||
$_all_values="${_all_values};${_value}"
|
||||
} else {
|
||||
$_all_values="${_value}"
|
||||
}
|
||||
}
|
||||
|
||||
# export the updated variable
|
||||
Set-Item env:\$_listname -Value "$_all_values"
|
||||
}
|
||||
|
||||
# function to prepend a value to a variable
|
||||
# which uses colons as separators
|
||||
# duplicates as well as trailing separators are avoided
|
||||
# first argument: the name of the result variable
|
||||
# second argument: the value to be prepended
|
||||
function colcon_prepend_unique_value {
|
||||
param (
|
||||
$_listname,
|
||||
$_value
|
||||
)
|
||||
|
||||
# get values from variable
|
||||
if (Test-Path Env:$_listname) {
|
||||
$_values=(Get-Item env:$_listname).Value
|
||||
} else {
|
||||
$_values=""
|
||||
}
|
||||
# start with the new value
|
||||
$_all_values="$_value"
|
||||
# iterate over existing values in the variable
|
||||
if ($_values) {
|
||||
$_values.Split(";") | ForEach {
|
||||
# not an empty string
|
||||
if ($_) {
|
||||
# not a duplicate of _value
|
||||
if ($_ -ne $_value) {
|
||||
# keep non-duplicate values
|
||||
$_all_values="${_all_values};$_"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# export the updated variable
|
||||
Set-Item env:\$_listname -Value "$_all_values"
|
||||
}
|
||||
|
||||
# function to source another script with conditional trace output
|
||||
# first argument: the path of the script
|
||||
# additional arguments: arguments to the script
|
||||
function colcon_package_source_powershell_script {
|
||||
param (
|
||||
$_colcon_package_source_powershell_script
|
||||
)
|
||||
# source script with conditional trace output
|
||||
if (Test-Path $_colcon_package_source_powershell_script) {
|
||||
if ($env:COLCON_TRACE) {
|
||||
echo ". '$_colcon_package_source_powershell_script'"
|
||||
}
|
||||
. "$_colcon_package_source_powershell_script"
|
||||
} else {
|
||||
Write-Error "not found: '$_colcon_package_source_powershell_script'"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# a powershell script is able to determine its own path
|
||||
# the prefix is two levels up from the package specific share directory
|
||||
$env:COLCON_CURRENT_PREFIX=(Get-Item $PSCommandPath).Directory.Parent.Parent.FullName
|
||||
|
||||
colcon_package_source_powershell_script "$env:COLCON_CURRENT_PREFIX\share/rqt_demo_plugin/hook/cmake_prefix_path.ps1"
|
||||
colcon_package_source_powershell_script "$env:COLCON_CURRENT_PREFIX\share/rqt_demo_plugin/hook/ld_library_path_lib.ps1"
|
||||
colcon_package_source_powershell_script "$env:COLCON_CURRENT_PREFIX\share/rqt_demo_plugin/local_setup.ps1"
|
||||
|
||||
Remove-Item Env:\COLCON_CURRENT_PREFIX
|
||||
88
install/rqt_demo_plugin/share/rqt_demo_plugin/package.sh
Normal file
88
install/rqt_demo_plugin/share/rqt_demo_plugin/package.sh
Normal file
@ -0,0 +1,88 @@
|
||||
# generated from colcon_core/shell/template/package.sh.em
|
||||
|
||||
# This script extends the environment for this package.
|
||||
|
||||
# function to prepend a value to a variable
|
||||
# which uses colons as separators
|
||||
# duplicates as well as trailing separators are avoided
|
||||
# first argument: the name of the result variable
|
||||
# second argument: the value to be prepended
|
||||
_colcon_prepend_unique_value() {
|
||||
# arguments
|
||||
_listname="$1"
|
||||
_value="$2"
|
||||
|
||||
# get values from variable
|
||||
eval _values=\"\$$_listname\"
|
||||
# backup the field separator
|
||||
_colcon_prepend_unique_value_IFS=$IFS
|
||||
IFS=":"
|
||||
# start with the new value
|
||||
_all_values="$_value"
|
||||
# workaround SH_WORD_SPLIT not being set in zsh
|
||||
if [ "$(command -v colcon_zsh_convert_to_array)" ]; then
|
||||
colcon_zsh_convert_to_array _values
|
||||
fi
|
||||
# iterate over existing values in the variable
|
||||
for _item in $_values; do
|
||||
# ignore empty strings
|
||||
if [ -z "$_item" ]; then
|
||||
continue
|
||||
fi
|
||||
# ignore duplicates of _value
|
||||
if [ "$_item" = "$_value" ]; then
|
||||
continue
|
||||
fi
|
||||
# keep non-duplicate values
|
||||
_all_values="$_all_values:$_item"
|
||||
done
|
||||
unset _item
|
||||
# restore the field separator
|
||||
IFS=$_colcon_prepend_unique_value_IFS
|
||||
unset _colcon_prepend_unique_value_IFS
|
||||
# export the updated variable
|
||||
eval export $_listname=\"$_all_values\"
|
||||
unset _all_values
|
||||
unset _values
|
||||
|
||||
unset _value
|
||||
unset _listname
|
||||
}
|
||||
|
||||
# since a plain shell script can't determine its own path when being sourced
|
||||
# either use the provided COLCON_CURRENT_PREFIX
|
||||
# or fall back to the build time prefix (if it exists)
|
||||
_colcon_package_sh_COLCON_CURRENT_PREFIX="/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/install/rqt_demo_plugin"
|
||||
if [ -z "$COLCON_CURRENT_PREFIX" ]; then
|
||||
if [ ! -d "$_colcon_package_sh_COLCON_CURRENT_PREFIX" ]; then
|
||||
echo "The build time path \"$_colcon_package_sh_COLCON_CURRENT_PREFIX\" doesn't exist. Either source a script for a different shell or set the environment variable \"COLCON_CURRENT_PREFIX\" explicitly." 1>&2
|
||||
unset _colcon_package_sh_COLCON_CURRENT_PREFIX
|
||||
return 1
|
||||
fi
|
||||
COLCON_CURRENT_PREFIX="$_colcon_package_sh_COLCON_CURRENT_PREFIX"
|
||||
fi
|
||||
unset _colcon_package_sh_COLCON_CURRENT_PREFIX
|
||||
|
||||
# function to source another script with conditional trace output
|
||||
# first argument: the path of the script
|
||||
# additional arguments: arguments to the script
|
||||
_colcon_package_sh_source_script() {
|
||||
if [ -f "$1" ]; then
|
||||
if [ -n "$COLCON_TRACE" ]; then
|
||||
echo "# . \"$1\""
|
||||
fi
|
||||
. "$@"
|
||||
else
|
||||
echo "not found: \"$1\"" 1>&2
|
||||
fi
|
||||
}
|
||||
|
||||
# source sh hooks
|
||||
_colcon_package_sh_source_script "$COLCON_CURRENT_PREFIX/share/rqt_demo_plugin/hook/cmake_prefix_path.sh"
|
||||
_colcon_package_sh_source_script "$COLCON_CURRENT_PREFIX/share/rqt_demo_plugin/hook/ld_library_path_lib.sh"
|
||||
_colcon_package_sh_source_script "$COLCON_CURRENT_PREFIX/share/rqt_demo_plugin/local_setup.sh"
|
||||
|
||||
unset _colcon_package_sh_source_script
|
||||
unset COLCON_CURRENT_PREFIX
|
||||
|
||||
# do not unset _colcon_prepend_unique_value since it might be used by non-primary shell hooks
|
||||
1
install/rqt_demo_plugin/share/rqt_demo_plugin/package.xml
Symbolic link
1
install/rqt_demo_plugin/share/rqt_demo_plugin/package.xml
Symbolic link
@ -0,0 +1 @@
|
||||
/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/package.xml
|
||||
50
install/rqt_demo_plugin/share/rqt_demo_plugin/package.zsh
Normal file
50
install/rqt_demo_plugin/share/rqt_demo_plugin/package.zsh
Normal file
@ -0,0 +1,50 @@
|
||||
# generated from colcon_zsh/shell/template/package.zsh.em
|
||||
|
||||
# This script extends the environment for this package.
|
||||
|
||||
# a zsh script is able to determine its own path if necessary
|
||||
if [ -z "$COLCON_CURRENT_PREFIX" ]; then
|
||||
# the prefix is two levels up from the package specific share directory
|
||||
_colcon_package_zsh_COLCON_CURRENT_PREFIX="$(builtin cd -q "`dirname "${(%):-%N}"`/../.." > /dev/null && pwd)"
|
||||
else
|
||||
_colcon_package_zsh_COLCON_CURRENT_PREFIX="$COLCON_CURRENT_PREFIX"
|
||||
fi
|
||||
|
||||
# function to source another script with conditional trace output
|
||||
# first argument: the path of the script
|
||||
# additional arguments: arguments to the script
|
||||
_colcon_package_zsh_source_script() {
|
||||
if [ -f "$1" ]; then
|
||||
if [ -n "$COLCON_TRACE" ]; then
|
||||
echo "# . \"$1\""
|
||||
fi
|
||||
. "$@"
|
||||
else
|
||||
echo "not found: \"$1\"" 1>&2
|
||||
fi
|
||||
}
|
||||
|
||||
# function to convert array-like strings into arrays
|
||||
# to workaround SH_WORD_SPLIT not being set
|
||||
colcon_zsh_convert_to_array() {
|
||||
local _listname=$1
|
||||
local _dollar="$"
|
||||
local _split="{="
|
||||
local _to_array="(\"$_dollar$_split$_listname}\")"
|
||||
eval $_listname=$_to_array
|
||||
}
|
||||
|
||||
# source sh script of this package
|
||||
_colcon_package_zsh_source_script "$_colcon_package_zsh_COLCON_CURRENT_PREFIX/share/rqt_demo_plugin/package.sh"
|
||||
unset convert_zsh_to_array
|
||||
|
||||
# setting COLCON_CURRENT_PREFIX avoids determining the prefix in the sourced scripts
|
||||
COLCON_CURRENT_PREFIX="$_colcon_package_zsh_COLCON_CURRENT_PREFIX"
|
||||
|
||||
# source zsh hooks
|
||||
_colcon_package_zsh_source_script "$COLCON_CURRENT_PREFIX/share/rqt_demo_plugin/local_setup.zsh"
|
||||
|
||||
unset COLCON_CURRENT_PREFIX
|
||||
|
||||
unset _colcon_package_zsh_source_script
|
||||
unset _colcon_package_zsh_COLCON_CURRENT_PREFIX
|
||||
1
install/rqt_demo_plugin/share/rqt_demo_plugin/plugin.xml
Symbolic link
1
install/rqt_demo_plugin/share/rqt_demo_plugin/plugin.xml
Symbolic link
@ -0,0 +1 @@
|
||||
/home/petar/Documents/Coding/2025-Eurobot/Rviz-Plugin-Demo/plugin.xml
|
||||
Reference in New Issue
Block a user