Skip to content

Commit

Permalink
Merge pull request #15 from jnmacdnld/kinetic-devel
Browse files Browse the repository at this point in the history
Remove driver_base dependency as this package is deprecated
  • Loading branch information
trainman419 authored Aug 14, 2017
2 parents 050ddcb + 0d0c7ac commit 3991df7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion prosilica_camera/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ find_package(catkin REQUIRED COMPONENTS
diagnostic_updater
image_transport
self_test
driver_base
rosconsole
dynamic_reconfigure
camera_calibration_parsers
Expand Down
2 changes: 1 addition & 1 deletion prosilica_camera/cfg/ProsilicaCamera.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PACKAGE='prosilica_camera'

from driver_base.msg import SensorLevels
from dynamic_reconfigure.msg import SensorLevels
from dynamic_reconfigure.parameter_generator_catkin import *

gen = ParameterGenerator()
Expand Down
2 changes: 0 additions & 2 deletions prosilica_camera/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<build_depend>diagnostic_msgs</build_depend>
<build_depend>image_transport</build_depend>
<build_depend>self_test</build_depend>
<build_depend>driver_base</build_depend>
<build_depend>dynamic_reconfigure</build_depend>
<build_depend>camera_calibration_parsers</build_depend>
<build_depend>polled_camera</build_depend>
Expand All @@ -38,7 +37,6 @@
<run_depend>diagnostic_msgs</run_depend>
<run_depend>image_transport</run_depend>
<run_depend>self_test</run_depend>
<run_depend>driver_base</run_depend>
<run_depend>dynamic_reconfigure</run_depend>
<run_depend>camera_calibration_parsers</run_depend>
<run_depend>polled_camera</run_depend>
Expand Down
8 changes: 4 additions & 4 deletions prosilica_camera/src/nodes/prosilica_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <nodelet/nodelet.h>
#include <image_transport/image_transport.h>
#include <dynamic_reconfigure/server.h>
#include <driver_base/SensorLevels.h>
#include <dynamic_reconfigure/SensorLevels.h>
#include <diagnostic_updater/diagnostic_updater.h>
#include <diagnostic_updater/publisher.h>
#include <camera_calibration_parsers/parse_ini.h>
Expand Down Expand Up @@ -515,7 +515,7 @@ class ProsilicaNodelet : public nodelet::Nodelet
last_config_.height = req.roi.height;
last_config_.width = req.roi.width;

reconfigureCallback(last_config_, driver_base::SensorLevels::RECONFIGURE_RUNNING);
reconfigureCallback(last_config_, dynamic_reconfigure::SensorLevels::RECONFIGURE_RUNNING);

try
{
Expand Down Expand Up @@ -690,7 +690,7 @@ class ProsilicaNodelet : public nodelet::Nodelet
{
NODELET_DEBUG("Reconfigure request received");

if (level >= (uint32_t)driver_base::SensorLevels::RECONFIGURE_STOP)
if (level >= (uint32_t)dynamic_reconfigure::SensorLevels::RECONFIGURE_STOP)
stop();

//! Trigger mode
Expand Down Expand Up @@ -865,7 +865,7 @@ class ProsilicaNodelet : public nodelet::Nodelet

//! If exception thrown due to bad settings, it will fail to start camera
//! Reload last good config
if (level >= (uint32_t)driver_base::SensorLevels::RECONFIGURE_STOP)
if (level >= (uint32_t)dynamic_reconfigure::SensorLevels::RECONFIGURE_STOP)
{
try
{
Expand Down

0 comments on commit 3991df7

Please sign in to comment.