Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit aabfe78

Browse files
committed
Fix required version + sn param launch file
1 parent 3444b37 commit aabfe78

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ function(checkPackage package customMessage)
1919
endif()
2020
endfunction(checkPackage)
2121

22-
find_package(ZED 2.1)
23-
if(ZED_VERSION_MINOR LESS 3) # Check ZED SDK for ZED Mini
24-
message(WARNING " The ZED Mini support requires ZED SDK >= 2.3")
25-
endif()
26-
22+
find_package(ZED 2.3)
2723
checkPackage("ZED" "ZED SDK not found, install it from:\n https://www.stereolabs.com/developers/")
2824

2925
exec_program(uname ARGS -p OUTPUT_VARIABLE CMAKE_SYSTEM_NAME2)

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,8 @@ To launch the wrapper without Rviz, use:
5454

5555
roslaunch zed_wrapper zed.launch
5656

57+
To select the ZED from its serial number
58+
59+
roslaunch zed_wrapper zed.launch serial_number:=1010 #replace 1010 with the actual SN
60+
5761
[More](https://www.stereolabs.com/documentation/guides/using-zed-with-ros/introduction.html)

launch/zed.launch

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1818
-->
1919
<launch>
2020
<!-- Odometry coordinate frame -->
21-
<arg name="odometry_frame" default="map" />
22-
<arg name="camera_model" default="0" /> <!-- 0=ZED, 1=ZEDM-->
21+
<arg name="odometry_frame" default="map" />
22+
<arg name="camera_model" default="0" /> <!-- 0=ZED, 1=ZEDM-->
23+
<arg name="serial_number" default="0" />
2324

2425
<group ns="zed">
2526
<include file="$(find zed_wrapper)/launch/zed_camera.launch">
2627
<!-- compliant mode for rviz -->
2728
<arg name="odometry_frame" value="$(arg odometry_frame)" />
2829
<arg name="camera_model" value="$(arg camera_model)" />
30+
<arg name="serial_number" default="$(arg serial_number)" />
2931
</include>
3032
</group>
3133

0 commit comments

Comments
 (0)