Skip to content

Commit

Permalink
Merge pull request #101 from teosnare/master
Browse files Browse the repository at this point in the history
velodyne_driver/src/lib/input.cc : fix for device_ip filter
  • Loading branch information
jack-oquin committed Oct 6, 2016
2 parents d8b0c2f + 2495c8f commit 611df63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions velodyne_driver/src/lib/input.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ namespace velodyne_driver
Input(private_nh, port)
{
sockfd_ = -1;

if (!devip_str_.empty()) {
inet_aton(devip_str_.c_str(),&devip_);
}

// connect to Velodyne UDP port
ROS_INFO_STREAM("Opening UDP socket: port " << port);
Expand Down

0 comments on commit 611df63

Please sign in to comment.