From b1bce0aa4e1b32e87461bc6b0bb77e06d76e42e6 Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Wed, 13 Aug 2014 11:58:25 -0700 Subject: [PATCH] remove wrong const --- rclcpp/include/rclcpp/executor/SingleThreadExecutor.h | 2 +- rclcpp/rclcpp-extras.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rclcpp/include/rclcpp/executor/SingleThreadExecutor.h b/rclcpp/include/rclcpp/executor/SingleThreadExecutor.h index a2f25fb..17c429e 100644 --- a/rclcpp/include/rclcpp/executor/SingleThreadExecutor.h +++ b/rclcpp/include/rclcpp/executor/SingleThreadExecutor.h @@ -80,7 +80,7 @@ public: { // Do callback std::cout << "Callback for subscriber of topic: " << subscriber->topic_name_ << std::endl; - const void *ros_msg = 0; + void * ros_msg = 0; bool taken = ros_middleware_interface::take(subscriber->subscriber_handle_, ros_msg); if (taken) { diff --git a/rclcpp/rclcpp-extras.cmake b/rclcpp/rclcpp-extras.cmake index 2b63a1d..2972d63 100644 --- a/rclcpp/rclcpp-extras.cmake +++ b/rclcpp/rclcpp-extras.cmake @@ -13,7 +13,7 @@ elseif(NOT "$ENV{ROS_MIDDLEWARE_IMPLEMENTATION}" STREQUAL "") set(_middleware_implementation "$ENV{ROS_MIDDLEWARE_IMPLEMENTATION}") else() # TODO detemine "default" implementation based on the available ones - list(GET _middleware_implementations 1 _middleware_implementation) + list(GET _middleware_implementations 0 _middleware_implementation) endif() list(FIND _middleware_implementations "${_middleware_implementation}" _index)