mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
first push on supporting ROS2 Dashing and IDL 4.2
This commit is contained in:
@@ -125,7 +125,11 @@ void @(topic)_Publisher::run()
|
||||
|
||||
// Publication code
|
||||
|
||||
@[if (ros2_distro == "ardent" or ros2_distro == "bouncy" or ros2_distro == "crystal") and float(fastrtps_version) < 1.9]@
|
||||
@(topic)_ st;
|
||||
@[else]@
|
||||
@(topic) st;
|
||||
@[end if]@
|
||||
|
||||
/* Initialize your structure here */
|
||||
|
||||
@@ -150,7 +154,11 @@ void @(topic)_Publisher::run()
|
||||
}while(std::cin >> ch);
|
||||
}
|
||||
|
||||
@[if (ros2_distro == "ardent" or ros2_distro == "bouncy" or ros2_distro == "crystal") and float(fastrtps_version) < 1.9]@
|
||||
void @(topic)_Publisher::publish(@(topic)_* st)
|
||||
@[else]@
|
||||
void @(topic)_Publisher::publish(@(topic)* st)
|
||||
@[end if]@
|
||||
{
|
||||
mp_publisher->write(st);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user