first push on supporting ROS2 Dashing and IDL 4.2

This commit is contained in:
TSC21
2019-09-09 12:39:39 +01:00
committed by Nuno Marques
parent f885d2274a
commit 278d2fd21f
12 changed files with 152 additions and 54 deletions

View File

@@ -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);
}