[Bug 581963] [Robotics] Data type use in templates
Bugzilla Link | 581963 |
Status | NEW |
Importance | P3 normal |
Reported | May 22, 2023 10:03 EDT |
Modified | May 22, 2023 10:03 EDT |
Version | 0.9.0 |
Description
The templates of Papyrus for Robotics imports the ROS2 primitive types. These types work well as communication objects, since the native ROS2 code generation via colcon translates them to native types. However, they do not work as types of internal attributes or parameters, since the standard Papyrus code generation is used here.
In case of C++, the issue could be solved by applying the External stereotype for each ROS2 primitive type or importing the ANSI C type library in the templates. While the Python code generation has no knowledge about the C++ stereotype, it might not be an issue since Python is untyped (it might be up to the user to use proper default values).