Skip to content

Commit d90e5d1

Browse files
committed
Add: Area zoom ROS service for Q62 PTZ camera
Signed-off-by: Stephen Phillips <[email protected]>
1 parent 10ce7b9 commit d90e5d1

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

clearpath_outdoornav_msgs/clearpath_camera_msgs/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ find_package(catkin REQUIRED
1313
# FILES
1414
#)
1515

16+
add_service_files(
17+
FILES
18+
q62AreaZoom.srv
19+
)
20+
21+
1622
## Add actions
1723
add_action_files(
1824
DIRECTORY
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Service definition to re-position a pan-tilt-zoom camera to a specific location with a specified zoom
2+
# Used primarily for box-zoom like functionality
3+
4+
float32 x # X location to move camera to, expressed as a fraction of image dimension (0 to 1, where 0.5 is current center)
5+
float32 y # Y location to move camera to, expressed as a fraction of image dimension (0 to 1, where 0.5 is current center)
6+
float32 zoom_factor
7+
---
8+
bool success
9+
string message

0 commit comments

Comments
 (0)