#include #include #include "HelloWorldData.hpp" #define TOPIC "TopicHelloWorld" using namespace unitree::robot; using namespace unitree::common; int main() { ChannelFactory::Instance()->Init(0); ChannelPublisher publisher(TOPIC); publisher.InitChannel(); while (true) { HelloWorldData::Msg msg(unitree::common::GetCurrentTimeMillisecond(), "HelloWorld."); publisher.Write(msg); sleep(1); } return 0; }