35 #include <std_srvs/Empty.h> 36 #include <test_roscpp/TestEmpty.h> 37 #include <test_roscpp/TestArray.h> 50 g_pub = nh.
advertise<test_roscpp::TestEmpty>(
"test_star_inter", 0);
53 g_pub = nh.
advertise<test_roscpp::TestArray>(
"test_star_inter", 0);
61 g_pub.
publish(test_roscpp::TestEmpty());
64 int main(
int argc,
char** argv)
66 ros::init(argc, argv,
"publisher_for_star_subscriber");
69 g_pub = nh.
advertise<test_roscpp::TestEmpty>(
"test_star_inter", 0);
void pubTimer(const ros::TimerEvent &)
void publish(const boost::shared_ptr< M > &message) const
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ServiceServer advertiseService(const std::string &service, bool(T::*srv_func)(MReq &, MRes &), T *obj)
Timer createTimer(Rate r, Handler h, Obj o, bool oneshot=false, bool autostart=true) const
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
bool switchPublisherType(std_srvs::EmptyRequest &, std_srvs::EmptyResponse &)
int main(int argc, char **argv)