-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Firmware download and custom plugin (#43)
Added headers for firmware download, created a ros2 service which calls the update function using the sensor_id and file path provided. Created a new Firmware download message to be used by the service. Modified the SendCommand message to include value from user. Added fields for polar coordinates in pc2. Added a new rviz plugin for displaying the targets data and giving the possibility to record and save the data in csv format. Removed targetlist message and subscribers from node Extended Dockerfile to include dependecies for smart_rviz_plugin. Added new python GUI inside plugin. Updated Readme to include the new plugin and GUI description. Reformatted the plugin files and removed the ignore file. Extended node to inlcude new interface for A4 T171. Update smart release in extract file. Documentetd new interface info into Readme and Changelog.
- Loading branch information
Showing
36 changed files
with
1,403 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
FROM ros:foxy | ||
|
||
## Revert to snapshot once GPG key error is resolved | ||
RUN rm /etc/apt/sources.list.d/ros2-snapshots.list | ||
RUN apt-get update && apt-get install curl -y | ||
RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg | ||
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
iputils-ping \ | ||
python3 \ | ||
python3-pip \ | ||
ros-foxy-point-cloud-msg-wrapper \ | ||
ros-foxy-rviz2 \ | ||
ros-foxy-rviz-common \ | ||
ros-foxy-rviz-default-plugins \ | ||
ros-foxy-rviz-rendering \ | ||
wget | ||
|
||
WORKDIR /code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
cmake_minimum_required(VERSION 3.11) | ||
|
||
project(smart_rviz_plugin) | ||
|
||
# Default to C++17 | ||
if(NOT CMAKE_CXX_STANDARD) | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
endif() | ||
|
||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic -Wnon-virtual-dtor -Woverloaded-virtual) | ||
endif() | ||
|
||
add_definitions(-D_BUILD_DIR_PATH="${CMAKE_CURRENT_BINARY_DIR}") | ||
add_definitions(-D_SRC_DIR_PATH="${CMAKE_CURRENT_SOURCE_DIR}") | ||
|
||
find_package(ament_cmake_auto REQUIRED) | ||
find_package(umrr_ros2_msgs REQUIRED) | ||
find_package(rviz_common REQUIRED) | ||
find_package(rviz_default_plugins REQUIRED) | ||
find_package(rviz_rendering REQUIRED) | ||
find_package(Qt5 REQUIRED COMPONENTS Widgets Test) | ||
find_package(pluginlib REQUIRED) | ||
find_package(rclcpp REQUIRED) | ||
|
||
|
||
set(CMAKE_AUTOMOC ON) | ||
|
||
set(smart_rviz_plugin_SRCS | ||
src/smart_recorder.cpp | ||
src/smart_services.cpp | ||
src/smart_download.cpp | ||
) | ||
|
||
set(smart_rviz_plugin_HDRS | ||
include/smart_rviz_plugin/smart_recorder.hpp | ||
include/smart_rviz_plugin/smart_services.hpp | ||
include/smart_rviz_plugin/smart_download.hpp | ||
) | ||
|
||
add_library(smart_rviz_plugin SHARED | ||
${smart_rviz_plugin_SRCS} | ||
${smart_rviz_plugin_HDRS} | ||
) | ||
|
||
set(dependencies | ||
umrr_ros2_msgs | ||
pluginlib | ||
Qt5 | ||
rclcpp | ||
rviz_common | ||
rviz_default_plugins | ||
rviz_ogre_vendor | ||
rviz_rendering | ||
std_msgs | ||
) | ||
|
||
ament_target_dependencies(smart_rviz_plugin | ||
${dependencies} | ||
) | ||
|
||
target_include_directories(smart_rviz_plugin PUBLIC | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> | ||
$<INSTALL_INTERFACE:include/smart_rviz_plugin> | ||
${Qt5Widgets_INCLUDE_DIRS} | ||
) | ||
|
||
|
||
target_link_libraries(smart_rviz_plugin | ||
rviz_common::rviz_common | ||
) | ||
|
||
|
||
target_compile_definitions(smart_rviz_plugin PRIVATE "RVIZ_DEFAULT_PLUGINS_BUILDING_LIBRARY") | ||
|
||
pluginlib_export_plugin_description_file(rviz_common plugins_description.xml) | ||
|
||
install( | ||
TARGETS smart_rviz_plugin | ||
EXPORT smart_rviz_plugin | ||
ARCHIVE DESTINATION lib | ||
LIBRARY DESTINATION lib | ||
RUNTIME DESTINATION bin | ||
) | ||
|
||
install( | ||
DIRECTORY include/ | ||
DESTINATION include/ | ||
) | ||
|
||
ament_export_targets(smart_rviz_plugin HAS_LIBRARY_TARGET) | ||
ament_export_dependencies( | ||
rclcpp | ||
rviz_common | ||
rviz_ogre_vendor | ||
sensor_msgs | ||
umrr_ros2_msgs | ||
) | ||
|
||
ament_package() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.