Skip to content

Commit

Permalink
Merge pull request ros-drivers#151 from flynneva/fix/remove-boost
Browse files Browse the repository at this point in the history
  • Loading branch information
flynneva authored May 17, 2021
2 parents 09ec6dc + 90d4d59 commit c4bb6e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
<depend>v4l-utils</depend>

<depend>ffmpeg</depend>
<depend>libboost-dev</depend>
<!-- <depend>libboost-lexical-cast-dev</depend> -->

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
Expand Down
5 changes: 3 additions & 2 deletions src/usb_cam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include <sys/time.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <boost/lexical_cast.hpp>

#include <stdio.h>
#include <stdlib.h>
Expand Down Expand Up @@ -1371,7 +1370,9 @@ bool UsbCam::set_auto_focus(int value)
*/
bool UsbCam::set_v4l_parameter(const std::string & param, int value)
{
return set_v4l_parameter(param, boost::lexical_cast<std::string>(value));
char buf[33];
snprintf(buf, sizeof(buf), "%i", value);
return set_v4l_parameter(param, buf);
}

/**
Expand Down

0 comments on commit c4bb6e0

Please sign in to comment.