You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wish to generate code from a ros2 .msg file using fastddsgen.
When I try to input the .msg file (that only has 1 line inside "string name") and execute fastddsgen I gen a syntax error.
If I create an idl file using OMG syntax for it it works, but using the -typeros2 flag doesn't change anything, the output files stay the same with/without it.
I expected to see something different, shouldn't I?
Thanks
Nir
The text was updated successfully, but these errors were encountered:
JLBuenoLopez
changed the title
Generating from ros2 .msg file format
Generating from ros2 .msg file format [13830]
Feb 10, 2022
cat gen/cpp/tmp/msg/Demo.idl
// generated from rosidl_adapter/resource/msg.idl.em
// with input from demo/msg/Demo.msg
// generated code does not contain a copyright notice
#include "geometry_msgs/msg/Accel.idl"
#include "geometry_msgs/msg/Twist.idl"
#include "std_msgs/msg/Header.idl"
module demo {
module msg {
struct Demo {
std_msgs::msg::Header header;
geometry_msgs::msg::Twist twist;
geometry_msgs::msg::Accel accel;
};
};
};
Note: You can see the includes looking for IDL files at the above paths; I am not yet sure how add /opt/ros/galactic/share to the IDL include path if you wanted to run fastddsgen.
Fast DDS-Gen is a tool independent from ROS 2 and it supports generation of Fast DDS TypeSupports from the OMG defined IDL format. I am afraid that it is not planned to support ROS 2 .msg format nor the -typeros2 option is intended for the described use in this ticket. I think that ROS 2 has a tool to transform from .msg to IDL files.
Hi,
I wish to generate code from a ros2 .msg file using
fastddsgen
.fastddsgen
I gen a syntax error.idl
file using OMG syntax for it it works, but using the -typeros2 flag doesn't change anything, the output files stay the same with/without it.I expected to see something different, shouldn't I?
Thanks
Nir
The text was updated successfully, but these errors were encountered: