Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
39 changes: 39 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# C++ objects and libs

*.slo
*.lo
*.o
*.a
*.la
*.lai
*.so
*.dll
*.dylib

# Qt-es

/.qmake.cache
/.qmake.stash
*.pro.user
*.pro.user.*
*.qbs.user
*.qbs.user.*
*.moc
moc_*.cpp
moc_*.h
qrc_*.cpp
ui_*.h
Makefile*
*build-*

# QtCreator

*.autosave

# QtCtreator Qml
*.qmlproject.user
*.qmlproject.user.*

# QtCtreator CMake
CMakeLists.txt.user*

9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ The zed_ros_wrapper is a catkin package. It depends on the following ROS package
- dynamic_reconfigure
- urdf


Open a terminal and build the package:

cd ~/catkin_ws/src
Expand All @@ -43,19 +42,19 @@ Open a terminal and build the package:

To launch the wrapper along with an Rviz preview, open a terminal and launch:

roslaunch zed_wrapper display.launch # by default open a ZED
$ roslaunch zed_display display.launch # by default open a ZED

or

roslaunch zed_wrapper display_zedm.launch # open a ZED Mini
$ roslaunch zed_display display_zedm.launch # open a ZED Mini


To launch the wrapper without Rviz, use:

roslaunch zed_wrapper zed.launch
$ roslaunch zed_wrapper zed.launch

To select the ZED from its serial number

roslaunch zed_wrapper zed.launch serial_number:=1010 #replace 1010 with the actual SN
$ roslaunch zed_wrapper zed.launch serial_number:=1010 #replace 1010 with the actual SN

[More](https://www.stereolabs.com/documentation/guides/using-zed-with-ros/introduction.html)
45 changes: 0 additions & 45 deletions launch/zed_nodelet.launch

This file was deleted.

19 changes: 19 additions & 0 deletions zed_display_rviz/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 2.8.7)

project(zed_display_rviz)

find_package(catkin REQUIRED)

catkin_package()

#Add all files in subdirectories of the project in
# a dummy_target so qtcreator have access to all files
FILE(GLOB_RECURSE extra_files ${CMAKE_SOURCE_DIR}/*)
add_custom_target(dummy_${PROJECT_NAME} SOURCES ${extra_files})

###############################################################################
# INSTALL

install(DIRECTORY
launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
21 changes: 21 additions & 0 deletions zed_display_rviz/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Stereolabs ZED Camera - ROS Display example

This package lets you visualize in the RViz application all the possible information that can be acquired using a ZED camera.

![ZED rendering on Rviz](images/depthcloud-RGB.png)

### Run the program

If you own a ZED camera launch:

$ roslaunch zed_display display.launch

![ZED rendering on Rviz](images/ZED-Rviz.png)

If you own a ZED Mini camera launch:

$ roslaunch zed_display display_zedm.launch

![ZED rendering on Rviz](images/ZEDM-Rviz.png)

[More](https://www.stereolabs.com/documentation/guides/using-zed-with-ros/introduction.html)
Binary file added zed_display_rviz/images/ZED-Rviz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added zed_display_rviz/images/ZEDM-Rviz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added zed_display_rviz/images/depthcloud-RGB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</include>

<!-- Launch rivz display -->
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find zed_wrapper)/rviz/zed.rviz" output="screen" />
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find zed_display_rviz)/rviz/zed.rviz" output="screen" />

</launch>
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<launch>
<arg name="svo_file" default="" /> <!-- <arg name="svo_file" default="path/to/svo/file.svo"> -->

<!-- Launch ZED camera wrapper -->
<include file="$(find zed_wrapper)/launch/zed.launch">
<arg name="camera_model" value="1" /> <!-- 0=ZED, 1=ZEDM-->
</include>
<!-- Launch ZED camera wrapper -->
<include file="$(find zed_wrapper)/launch/zed.launch">
<arg name="camera_model" value="1" /> <!-- 0=ZED, 1=ZEDM-->
<arg name="svo_file" value="$(arg svo_file)" />
</include>

<!-- Launch rivz display -->
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find zed_wrapper)/rviz/zedm.rviz" output="screen" />
<!-- Launch rivz display -->
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find zed_display_rviz)/rviz/zedm.rviz" output="screen" />

</launch>
16 changes: 16 additions & 0 deletions zed_display_rviz/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<package format="2">
<name>zed_display_rviz</name>
<version>1.0.0</version>
<description>
"zed_display" is a ROS package to visualize in Rviz the information from the "zed_wrapper" node
</description>
<maintainer email="[email protected]">STEREOLABS</maintainer>
<license>BSD</license>

<buildtool_depend>catkin</buildtool_depend>

<exec_depend>rviz</exec_depend>
<exec_depend>rviz_imu_plugin</exec_depend>
<exec_depend>zed_wrapper</exec_depend>
</package>
Loading