- If possible update your MATLAB to latest release, R2021a. This issue is resolved in R2021a.
- You can use geometry_msgs/PointStamped message to replace geometry_msgs/Vector3Stamped message. geometry_msgs/Point is one-to-one replacement for geometry_msgs/Vector3 message. Additionallly, you can apply translation to a point but not a vector3, since vector3 is just a direction. As mentioned in this post tf2 will ony rotate a geometry_msgs/Vector3 but it can rotate and translate a geometry_msgs/Point.
Conflict when generated ROS node using geometry_msgs/Vector3Stamped
2 次查看(过去 30 天)
显示 更早的评论
Hi all,
I use Matlab 2020b on ubuntu 18.04, I came across conflict in the code generation when trying to generate ROS node with geometry_msgs/Vector3Stamped.
When using Vector3Stamped there is an element in the bus assignment block called Vector, which cause a conflict when trying to generate the node.
My solution was to edit the name under the Bus Editor in the Modeling tab, generate the code and then change back the bus element in slros_busmsg_conversion.cpp, this solution works but it's a bit slow to change it each time I'm generating nodes (because the changes are not saved).
Is there a better solution to this problem?
0 个评论
回答(1 个)
Abhijeet Gadkari
2021-5-27
Hello Iftach,
This looks like a bug in ROS Toolbox. Thanks for bringing this to our attention.
There are couple of options to get around this problem:
Let us know if this is an acceptable solution.
-Abhijeet
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Specialized Messages 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!