Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit 74c2979

Browse files
committed
fix:Add a little note and change the default IP address
1 parent f905392 commit 74c2979

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

demo/udp_demo/main_ros.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,16 @@ int main(int argc, char** argv) {
5252
ros::NodeHandle node;
5353
FusionAhrsInitialise(&ahrs);
5454
std::this_thread::sleep_for(std::chrono::milliseconds(5000));
55-
auto udp_manager = std::make_shared<UdpManager>("192.168.1.188", 8888);
55+
/*
56+
本机IP地址应该在192.168.1.X网段下。
57+
192.168.1.168是同步板的IP地址
58+
The host IP address should be in the 192.168.1.X network segment.
59+
192.168.1.168 is the IP address of the synchronization board.
60+
*/
61+
auto udp_manager = std::make_shared<UdpManager>("192.168.1.168", 8888);
5662
udp_manager->Start();
5763

58-
ros::Publisher imu_pub = node.advertise<sensor_msgs::Imu>("/imu", 1000);
64+
ros::Publisher imu_pub = node.advertise<sensor_msgs::Imu>("/imu_syn_board", 1000);
5965
CamManger::GetInstance().Initialization();
6066
CamManger::GetInstance().Start();
6167
std::this_thread::sleep_for(std::chrono::milliseconds(5000));

demo/zmq_demo/main_zmq.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ int main() {
2727
zmq::context_t ctx(10);
2828
zmq::socket_t zmq_publisher(ctx, ZMQ_PUB);
2929
zmq_publisher.bind("tcp://127.0.0.1:5555");
30-
auto udp_manager = std::make_shared<UdpManager>("192.168.192.168", 8888);
30+
/*
31+
本机IP地址应该在192.168.1.X网段下。
32+
192.168.1.168是同步板的IP地址
33+
The host IP address should be in the 192.168.1.X network segment.
34+
192.168.1.168 is the IP address of the synchronization board.
35+
*/
36+
auto udp_manager = std::make_shared<UdpManager>("192.168.1.168", 8888);
3137
udp_manager->Start();
3238
CamManger::GetInstance().Initialization();
3339
CamManger::GetInstance().Start();

0 commit comments

Comments
 (0)