Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion net_ft_description/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.10)
project(net_ft_description)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
Expand Down
2 changes: 1 addition & 1 deletion net_ft_diagnostic_broadcaster/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.10)
project(net_ft_diagnostic_broadcaster)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
Expand Down
2 changes: 1 addition & 1 deletion net_ft_driver/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.10)
project(net_ft_driver)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class NetFTInterface

void unpack(uint8_t* buffer);

asio::io_service io_service_;
asio::io_context io_context_;
asio::ip::udp::socket socket_;

std::string ip_address_;
Expand Down
4 changes: 2 additions & 2 deletions net_ft_driver/src/interfaces/net_ft_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ constexpr uint32_t kStartStreaming = 0x0002;
namespace net_ft_driver
{
NetFTInterface::NetFTInterface(const std::string& ip_address, int max_sampling_freq)
: socket_(io_service_)
: socket_(io_context_)
, ip_address_(ip_address)
, force_scale_(1.0)
, torque_scale_(1.0)
Expand All @@ -65,7 +65,7 @@ NetFTInterface::NetFTInterface(const std::string& ip_address, int max_sampling_f
, status_(0)
, ft_values_({ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 })
{
asio::ip::udp::endpoint endpoint(asio::ip::address_v4::from_string(ip_address), kPort);
asio::ip::udp::endpoint endpoint(asio::ip::make_address(ip_address), kPort);
socket_.open(asio::ip::udp::v4());
socket_.connect(endpoint);

Expand Down
Loading