Commit bd1c1ea2 authored by Mohamed Ahmed's avatar Mohamed Ahmed

Adding time_msgs

parent a859642f
......@@ -10,6 +10,7 @@ add_compile_options(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
time_msgs
message_generation
)
......@@ -107,7 +108,7 @@ generate_messages(
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES timeClient
CATKIN_DEPENDS message_runtime
CATKIN_DEPENDS message_runtime time_msgs
# DEPENDS system_lib
)
......
......@@ -10,7 +10,7 @@
#include "timeServiceEvent.hpp"
void callback(const timeClient::srv_info &msg);
void callback(const time_msgs::srv_info &msg);
void initialize_startingRosHandler();
namespace ara
......@@ -149,7 +149,7 @@ public:
events::BrakeEvent BrakeEvent;
void callback(const timeClient::srv_info &msg);
void callback(const time_msgs::srv_info &msg);
};
} // namespace proxy
......
......@@ -61,7 +61,7 @@ void initialize_startingRosHandler()
timeServiceProxy::srvInfoSubscriber = global_rosHandler.subscribe("/timeService_info",5, callback);
}
void callback(const timeClient::srv_info &msg)
void callback(const time_msgs::srv_info &msg)
{
std::string str = msg.srv_ns.substr(1);
timeServiceProxy::instanceID_ = std::stoi(str);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment