Skip to content

Commit

Permalink
changed to rosunit empty client
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedHumais committed Jul 14, 2022
1 parent ad8e8c8 commit 0fc4161
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#ifndef ROSUNIT_RESETCLNT
#define ROSUNIT_RESETCLNT
#ifndef ROSUNIT_EMPTYCLNT
#define ROSUNIT_EMPTYCLNT

#include <ros/ros.h>
#include <std_srvs/Empty.h>

namespace HEAR{

class ROSUnitResetClient {
class ROSUnitEmptyClient {
private:
ros::ServiceClient m_client;
public:
ROSUnitResetClient(ros::NodeHandle&, std::string);
ROSUnitEmptyClient(ros::NodeHandle&, std::string);
bool process();
};

Expand Down
6 changes: 3 additions & 3 deletions src/ROSUnit_ResetClnt.cpp → src/ROSUnit_EmptyClnt.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include "HEAR_ROS/ROSUnit_ResetClnt.hpp"
#include "HEAR_ROS/ROSUnit_EmptyClnt.hpp"

namespace HEAR{

ROSUnitResetClient::ROSUnitResetClient(ros::NodeHandle &nh, std::string t_name){
ROSUnitEmptyClient::ROSUnitEmptyClient(ros::NodeHandle &nh, std::string t_name){
m_client = nh.serviceClient<std_srvs::Empty>(t_name);
}

bool ROSUnitResetClient::process(){
bool ROSUnitEmptyClient::process(){
std_srvs::Empty msg;
return m_client.call(msg);
}
Expand Down

0 comments on commit 0fc4161

Please sign in to comment.