Skip to content

Commit c64ad05

Browse files
committed
uas arm modifications
1 parent a5966ab commit c64ad05

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ find_package(catkin REQUIRED COMPONENTS
3232
###
3333
# Find Packages
3434
find_package(OpenCV REQUIRED)
35-
find_package(LibUnwind REQUIRED)
35+
#find_package(LibUnwind REQUIRED)
3636

3737
find_package(Boost REQUIRED)
3838
if(Boost_FOUND)
@@ -60,7 +60,7 @@ generate_messages(
6060
catkin_package(
6161
INCLUDE_DIRS include
6262
CATKIN_DEPENDS roscpp std_msgs message_runtime
63-
DEPENDS OpenCV LibUnwind
63+
DEPENDS OpenCV #LibUnwind
6464
)
6565

6666
include_directories(
@@ -69,12 +69,12 @@ include_directories(
6969
${SPINNAKER_INCLUDE_DIR}
7070
${OpenCV_INCLUDE_DIRS}
7171
${Boost_INCLUDE_DIR}
72-
${LibUnwind_INCLUDE_DIRS}
72+
#${LibUnwind_INCLUDE_DIRS}
7373
)
7474

7575
link_directories( ${SPINNAKER_LIB_DIR} )
7676

77-
set (LIBS ${LibUnwind_LIBRARIES} Spinnaker ${OpenCV_LIBS} ${Boost_GENERAL})
77+
set (LIBS Spinnaker ${OpenCV_LIBS} ${Boost_GENERAL})
7878

7979
add_library (acquilib SHARED
8080
src/capture.cpp

launch/acquisition.launch

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<launch>
22
<!-- configure console output verbosity mode:debug_console.conf or std_console.conf -->
3-
<env name="ROSCONSOLE_CONFIG_FILE" value="$(find spinnaker_sdk_camera_driver)/cfg/debug_console.conf"/>
3+
<env name="ROSCONSOLE_CONFIG_FILE" value="$(find spinnaker_sdk_camera_driver)/cfg/std_console.conf"/>
44

55
<!-- acquisition.lauynch -->
6-
<arg name="binning" default="1" doc="Binning for cameras, when changing from 2 to 1 cameras need to be unplugged and replugged"/>
6+
<arg name="launch_prefix" default="" />
7+
<!-- set to value="gdbserver localhost:10000" for remote debugging -->
8+
<!-- for gdb which needs to be run by pressing R, 'xterm -e gdb with two - args ' -->
9+
<arg name="binning" default="2" doc="Binning for cameras, when changing from 2 to 1 cameras need to be unplugged and replugged"/>
710
<arg name="color" default="false" doc="Should color images be used (only works on models that support color images)"/>
811
<arg name="exp" default="0" doc="Exposure setting for cameras"/>
912
<arg name="frames" default="3400" doc="Numer of frames to save/view 0=ON"/>
@@ -21,8 +24,7 @@
2124
<arg name="config_file" default="$(find spinnaker_sdk_camera_driver)/params/test_params.yaml" doc="File specifying the parameters of the camera_array"/>
2225

2326
<!-- load the acquisition node -->
24-
<node pkg="spinnaker_sdk_camera_driver" type="acquisition_node" name="acquisition_node" output="$(arg output)"
25-
args="">
27+
<node pkg="spinnaker_sdk_camera_driver" type="acquisition_node" name="acquisition_node" output="$(arg output)" launch-prefix="$(arg launch_prefix)" args="">
2628

2729
<!-- load the acquisition node parameters file. Note any parameters provided in this file will
2830
override what is in the yaml file. Thus use it to set parameters camer_array configuration params -->
@@ -47,4 +49,4 @@
4749

4850
</node>
4951

50-
</launch>
52+
</launch>

params/test_params.yaml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
cam_ids:
2-
- 17197557
2+
- 17197556
33
cam_aliases:
44
- cam0
5-
master_cam: 17197557
6-
skip: 20
7-
delay: 1.0
5+
master_cam: 17197556
6+
skip: 5
7+
delay: 0
8+
9+
#Camera info message details
10+
distortion_model: plumb_bob
11+
distortion_coeffs:
12+
- [-0.17465, 0.03501, 0.00064, -0.00036]
13+
#specified as [fx 0 cx 0 fy cy 0 0 1]
14+
intrinsic_coeffs:
15+
- [638.71023, 0.0, 315.25919, 0.0, 641.21041, 248.26077, 0.0, 0.0, 1.0]
816

917
# Assign all the follwing via launch file to prevent confusion and conflict
1018

1119
#save_path: ~/projects/data
1220
#save_type: .bmp #binary or .tiff or .bmp
1321
#binning: 1 # going from 2 to 1 requires cameras to be unplugged and replugged
14-
#color: false
22+
color: false
1523
#frames: 50
1624
#soft_framerate: 4 # this frame rate reflects to the software frame rate set using ros::rate
1725
#exp: 997
1826
#to_ros: true #When to_ros is not selected, but live is selected, pressing 'space' exports single image to ROS
19-
20-
#Camera info message details
21-
distortion_model: plumb_bob
22-
distortion_coeffs:
23-
- [-0.021141875266089592, -0.3733872931278025, 2.385982550579459, 3.2824571732099725]
24-
#- [-0.021141875266089592, -0.3733872931278025, 2.385982550579459, 3.2824571732099725]
25-
#specified as [fx 0 cx 0 fy cy 0 0 1]
26-
intrinsic_coeffs:
27-
- [1886.9232141485886, 0.0, 604.7214878709341, 0.0, 1886.6668765711668, 493.47726714719823, 0.0, 0.0, 1.0]
28-
#- [1886.9232141485886, 0.0, 604.7214878709341, 0.0, 1886.6668765711668, 493.47726714719823, 0.0, 0.0, 1.0]

0 commit comments

Comments
 (0)