13 #include <std_srvs/Empty.h> 24 int main(
int argc,
char **argv)
27 ros::init(argc, argv,
"continuous_segmenter");
32 segmentClient = node.
serviceClient<std_srvs::Empty>(
"rail_segmentation/segment");
35 pnh.
param(
"segmentation_rate", rate, 0.5);
40 segmentClient.
call(srv);
ServiceClient serviceClient(const std::string &service_name, bool persistent=false, const M_string &header_values=M_string())
int main(int argc, char **argv)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
bool call(MReq &req, MRes &res)
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
ROSCPP_DECL void spinOnce()