Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libuvc_ros
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
ADC
external
libuvc_ros
Commits
e93697b5
Commit
e93697b5
authored
10 years ago
by
root
Browse files
Options
Downloads
Patches
Plain Diff
add new parameters in cfg
parent
5ef11b9b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libuvc_camera/CMakeLists.txt
+3
-3
3 additions, 3 deletions
libuvc_camera/CMakeLists.txt
libuvc_camera/src/camera_driver.cpp
+4
-3
4 additions, 3 deletions
libuvc_camera/src/camera_driver.cpp
with
7 additions
and
6 deletions
libuvc_camera/CMakeLists.txt
+
3
−
3
View file @
e93697b5
...
...
@@ -19,19 +19,19 @@ catkin_package(
LIBRARIES libuvc_camera_nodelet
)
include_directories
(
include
${
Boost_INCLUDE_DIR
}
${
catkin_INCLUDE_DIRS
}
${
libuvc_INCLUDE_DIRS
}
)
include_directories
(
include
${
libuvc_INCLUDE_DIRS
}
${
Boost_INCLUDE_DIR
}
${
catkin_INCLUDE_DIRS
}
)
link_directories
(
${
catkin_LINK_DIRS
}
)
find_package
(
Boost REQUIRED COMPONENTS thread
)
include_directories
(
${
Boost_INCLUDE_DIRS
}
)
add_executable
(
camera_node src/main.cpp src/camera_driver.cpp
)
target_link_libraries
(
camera_node
${
Boost_LIBRARIES
}
${
catkin_LIBRARIES
}
${
libuvc_LIBRARIES
}
)
target_link_libraries
(
camera_node
${
libuvc_LIBRARIES
}
${
Boost_LIBRARIES
}
${
catkin_LIBRARIES
}
)
add_dependencies
(
camera_node
${
PROJECT_NAME
}
_gencfg
)
add_library
(
libuvc_camera_nodelet src/nodelet.cpp src/camera_driver.cpp
)
add_dependencies
(
libuvc_camera_nodelet
${
libuvc_camera_EXPORTED_TARGETS
}
)
target_link_libraries
(
libuvc_camera_nodelet
${
Boost_LIBRARIES
}
${
catkin_LIBRARIES
}
${
libuvc_LIBRARIES
}
)
target_link_libraries
(
libuvc_camera_nodelet
${
libuvc_LIBRARIES
}
${
Boost_LIBRARIES
}
${
catkin_LIBRARIES
}
)
add_dependencies
(
libuvc_camera_nodelet
${
PROJECT_NAME
}
_gencfg
)
install
(
TARGETS camera_node libuvc_camera_nodelet
...
...
This diff is collapsed.
Click to expand it.
libuvc_camera/src/camera_driver.cpp
+
4
−
3
View file @
e93697b5
...
...
@@ -124,9 +124,12 @@ void CameraDriver::ReconfigureCallback(UVCCameraConfig &new_config, uint32_t lev
PARAM_INT
(
auto_exposure
,
ae_mode
,
1
<<
new_config
.
auto_exposure
);
PARAM_INT
(
auto_exposure_priority
,
ae_priority
,
new_config
.
auto_exposure_priority
);
PARAM_INT
(
exposure_absolute
,
exposure_abs
,
new_config
.
exposure_absolute
*
10000
);
// TODO: iris_absolute
PARAM_INT
(
auto_focus
,
focus_auto
,
new_config
.
auto_focus
?
1
:
0
);
PARAM_INT
(
focus_absolute
,
focus_abs
,
new_config
.
focus_absolute
);
PARAM_INT
(
gain
,
gain
,
new_config
.
gain
);
PARAM_INT
(
iris_absolute
,
iris_abs
,
new_config
.
iris_absolute
);
PARAM_INT
(
brightness
,
brightness
,
new_config
.
brightness
);
if
(
new_config
.
pan_absolute
!=
config_
.
pan_absolute
||
new_config
.
tilt_absolute
!=
config_
.
tilt_absolute
)
{
if
(
uvc_set_pantilt_abs
(
devh_
,
new_config
.
pan_absolute
,
new_config
.
tilt_absolute
))
{
...
...
@@ -138,9 +141,7 @@ void CameraDriver::ReconfigureCallback(UVCCameraConfig &new_config, uint32_t lev
// TODO: roll_absolute
// TODO: privacy
// TODO: backlight_compensation
// TODO: brightness
// TODO: contrast
// TODO: gain
// TODO: power_line_frequency
// TODO: auto_hue
// TODO: saturation
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment