Commit bd1c1ea2 authored by Mohamed Ahmed's avatar Mohamed Ahmed
Browse files

Adding time_msgs

parent a859642f
...@@ -10,6 +10,7 @@ add_compile_options(-std=c++11) ...@@ -10,6 +10,7 @@ add_compile_options(-std=c++11)
find_package(catkin REQUIRED COMPONENTS find_package(catkin REQUIRED COMPONENTS
roscpp roscpp
std_msgs std_msgs
time_msgs
message_generation message_generation
) )
...@@ -107,7 +108,7 @@ generate_messages( ...@@ -107,7 +108,7 @@ generate_messages(
catkin_package( catkin_package(
# INCLUDE_DIRS include # INCLUDE_DIRS include
# LIBRARIES timeClient # LIBRARIES timeClient
CATKIN_DEPENDS message_runtime CATKIN_DEPENDS message_runtime time_msgs
# DEPENDS system_lib # DEPENDS system_lib
) )
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "timeServiceEvent.hpp" #include "timeServiceEvent.hpp"
void callback(const timeClient::srv_info &msg); void callback(const time_msgs::srv_info &msg);
void initialize_startingRosHandler(); void initialize_startingRosHandler();
namespace ara namespace ara
...@@ -149,7 +149,7 @@ public: ...@@ -149,7 +149,7 @@ public:
events::BrakeEvent BrakeEvent; events::BrakeEvent BrakeEvent;
void callback(const timeClient::srv_info &msg); void callback(const time_msgs::srv_info &msg);
}; };
} // namespace proxy } // namespace proxy
......
...@@ -61,7 +61,7 @@ void initialize_startingRosHandler() ...@@ -61,7 +61,7 @@ void initialize_startingRosHandler()
timeServiceProxy::srvInfoSubscriber = global_rosHandler.subscribe("/timeService_info",5, callback); 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); std::string str = msg.srv_ns.substr(1);
timeServiceProxy::instanceID_ = std::stoi(str); 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