Skip to content

Commit 1b12ffe

Browse files
committed
opt node name
1 parent 3a9b0b3 commit 1b12ffe

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

example/NetCam/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ int main() {
3434
// 4.接收数据
3535
Messenger::GetInstance().SubStruct("imu_1", ImuCallback);
3636
Messenger::GetInstance().SubStruct("cam_1", ImageCallback);
37-
// 阻塞线程
37+
3838
while (true) {
3939
std::this_thread::sleep_for(std::chrono::milliseconds(100));
4040
}

example/NetCam/main_ros.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class CamDriver {
8585
};
8686

8787
int main(int argc, char **argv) {
88-
ros::init(argc, argv, "udp_demo", ros::init_options::NoSigintHandler);
88+
ros::init(argc, argv, "ros_demo", ros::init_options::NoSigintHandler);
8989
ros::NodeHandle node;
9090
CamDriver demo_node(node);
9191
demo_node.Init();

example/NetCam/main_ros2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class CamDriver final : public rclcpp::Node {
1212
public:
1313
CamDriver()
14-
: Node("gige_driver"), node_handle_(std::shared_ptr<CamDriver>(this, [](auto *) {})), transport_(node_handle_) {
14+
: Node("ros2_cam_driver"), node_handle_(std::shared_ptr<CamDriver>(this, [](auto *) {})), transport_(node_handle_) {
1515
std::string camera_name_1 = "cam_1";
1616
std::string camera_name_2 = "cam_2";
1717
const std::string imu_name = "imu_1";

0 commit comments

Comments
 (0)