Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into string_improvements
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/rig_reconfigure.cpp
  • Loading branch information
authaldo committed Aug 8, 2023
2 parents 457407d + 59e58a0 commit a25a5d9
Show file tree
Hide file tree
Showing 10 changed files with 472 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install depdendencies
run: |
. /opt/ros/$ROS_DISTRO/setup.sh
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "external/imspinner"]
path = external/imspinner
url = https://github.com/dalerank/imspinner.git
[submodule "external/lodepng"]
path = external/lodepng
url = https://github.com/lvandeve/lodepng.git
18 changes: 15 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ find_package(rclcpp REQUIRED)
include(FetchContent)
FetchContent_Declare(imgui
GIT_REPOSITORY https://github.com/ocornut/imgui.git
GIT_TAG 3ea0fad204e994d669f79ed29dcaf61cd5cb571d # latest docking branch at time of writing
GIT_TAG v1.89.8-docking
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
)
Expand All @@ -33,18 +33,30 @@ set(OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL REQUIRED)
target_link_libraries(imgui PUBLIC glfw OpenGL::GL)

add_executable(${PROJECT_NAME} src/rig_reconfigure.cpp src/service_wrapper.cpp src/parameter_tree.cpp)
add_executable(${PROJECT_NAME} src/rig_reconfigure.cpp src/service_wrapper.cpp src/parameter_tree.cpp external/lodepng/lodepng.cpp)

# uncomment for checking the executable with tsan
#target_compile_options(${PROJECT_NAME} PRIVATE -g -fsanitize=thread)
#target_link_options(${PROJECT_NAME} PRIVATE -fsanitize=thread)

target_include_directories(${PROJECT_NAME} PRIVATE include external/imspinner)
target_include_directories(${PROJECT_NAME} PRIVATE include external/imspinner external/lodepng)
target_link_libraries(${PROJECT_NAME} imgui)
ament_target_dependencies(${PROJECT_NAME} rclcpp)

install(TARGETS ${PROJECT_NAME}
DESTINATION lib/${PROJECT_NAME}
)

install(FILES resource/rig_reconfigure.png
DESTINATION share/${PROJECT_NAME}/resource
)

install(FILES resource/rig_reconfigure.svg
DESTINATION share/icons/hicolor/scalable/apps
)

install(FILES resource/rig_reconfigure.desktop
DESTINATION share/applications
)

ament_package()
1 change: 1 addition & 0 deletions external/lodepng
Submodule lodepng added at c18b94
1 change: 1 addition & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<buildtool_depend>git</buildtool_depend>
<depend>libglfw3-dev</depend>
<depend>rclcpp</depend>
<depend>ament_index_cpp</depend>

<export>
<build_type>ament_cmake</build_type>
Expand Down
7 changes: 7 additions & 0 deletions resource/rig_reconfigure.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=RIG Reconfigure
Comment=GUI tool for editing ROS 2 parameters at runtime
Exec=bash -c "ros2 run rig_reconfigure rig_reconfigure"
Icon=rig_reconfigure
Terminal=false
Binary file added resource/rig_reconfigure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions resource/rig_reconfigure.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a25a5d9

Please sign in to comment.