Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple lidar support #3

Merged
merged 28 commits into from
Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
48ce05b
First compilable Gazebo Plugin stub
prybicki Jul 12, 2022
edfadfd
Added a way to access meshes from gazebo internals
Jakub-Krakowiak Jul 14, 2022
53a7882
fixed README
Jakub-Krakowiak Jul 14, 2022
d68453f
fixed README one more time
Jakub-Krakowiak Jul 14, 2022
19646be
Generated pose matrix and refactored code
Jakub-Krakowiak Jul 15, 2022
a5fbaf4
Added RGLPlugin subrepository using git modules
Jakub-Krakowiak Jul 18, 2022
607a110
Connected to RGL library and optimized entity pose checking
Jakub-Krakowiak Jul 18, 2022
003c4d3
Optix compilation error while using raytracing function
Jakub-Krakowiak Jul 21, 2022
7c1c900
fixed bug with only 1/3 of the mesh being loaded and migrated from gi…
Jakub-Krakowiak Jul 25, 2022
1a39e2c
added the external directory to git for FetchContent to work
Jakub-Krakowiak Jul 25, 2022
34ad9ee
added primitive mesh detection and major code refactor
Jakub-Krakowiak Aug 2, 2022
c891d8a
fixed a bug that crashed gazebo when deleting the gazebo lidar model
Jakub-Krakowiak Aug 2, 2022
66f7233
added sending pointCloudPacked messages
Jakub-Krakowiak Sep 13, 2022
7ea7d92
updated readme
Jakub-Krakowiak Sep 13, 2022
d877850
added msg publishing and debug performance info
Jakub-Krakowiak Oct 20, 2022
d689166
updated .gitignore
Jakub-Krakowiak Oct 20, 2022
2c8d605
preparing to merge with guiPlugin
Jakub-Krakowiak Oct 20, 2022
c70049d
renamed serverPlugin to RGLServerPlugin
Jakub-Krakowiak Oct 20, 2022
20c1b31
restructured project before incorporating RGLGuiPlugin
Jakub-Krakowiak Oct 20, 2022
1a71af1
incorporated RGLGuiPlugin
Jakub-Krakowiak Oct 20, 2022
4403b8f
updated readme
Jakub-Krakowiak Oct 20, 2022
21e6aab
updated readme
Jakub-Krakowiak Oct 25, 2022
477ad38
deleted unused include's and refactored code
Jakub-Krakowiak Oct 26, 2022
4364194
find out a way to check if RGLServerPlugin is attached to entity in o…
Jakub-Krakowiak Oct 27, 2022
4c92b63
changed asserts to if statements and deleted unused test file
Jakub-Krakowiak Oct 27, 2022
59a2e01
added multiple lidar support and fixed GUI
Jakub-Krakowiak Nov 2, 2022
72d4c1f
deleted unused functionality from GUI Plugin
Jakub-Krakowiak Nov 3, 2022
5fe1e75
hopefully fixed GUI compilation bug on other computers
Jakub-Krakowiak Nov 7, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@
*.exe
*.out
*.app

.idea
build
cmake-build-debug
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cmake_minimum_required(VERSION 3.18)
project(RGLGazeboPlugin)

add_subdirectory(RGLServerPlugin)
add_subdirectory(RGLGuiPlugin)
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
# RGLGazeboPlugin
# RGLGazeboPlugin
## Warning:

Currently tested only on ubuntu 20.04 (ubuntu 22 has faulty gazebo fortress atm)
Jakub-Krakowiak marked this conversation as resolved.
Show resolved Hide resolved

### Installation:
From RGLGazeboPlugin directory:
```
mkdir build
cd build
cmake ..
make -j
Jakub-Krakowiak marked this conversation as resolved.
Show resolved Hide resolved
cd ..
export IGN_GAZEBO_SYSTEM_PLUGIN_PATH=`pwd`/build/RGLServerPlugin
export IGN_GUI_PLUGIN_PATH=`pwd`/build/RGLGuiPlugin
```
### demo:
```
cd test_world
ign gazebo -v 4 actor_world.sdf
```

1. load RGLGuiPlugin from the menu on the upper right
2. press the refresh button in the plugin
3. start the simulation by pressing play, the lidar hits should be visible in the GUI
30 changes: 30 additions & 0 deletions RGLGuiPlugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)

if(POLICY CMP0100)
cmake_policy(SET CMP0100 NEW)
endif()
Jakub-Krakowiak marked this conversation as resolved.
Show resolved Hide resolved

project(RGLGuiPlugin)

find_package(ignition-rendering6 REQUIRED)

# GUI plugin
set(GUI_PLUGIN RGLGuiPlugin)

set(CMAKE_AUTOMOC ON)

find_package(ignition-gui6 REQUIRED)
find_package(ignition-msgs8 REQUIRED)

QT5_ADD_RESOURCES(resources_RCC ${GUI_PLUGIN}.qrc)

add_library(${GUI_PLUGIN} SHARED
${GUI_PLUGIN}.cc
${resources_RCC}
)
target_link_libraries(${GUI_PLUGIN}
PRIVATE
ignition-gui6::ignition-gui6
ignition-rendering6::ignition-rendering6
ignition-msgs8::ignition-msgs8
)
Loading