CPFL / Autoware_Toolbox

MATLAB/Simulink sample code suite for Autoware.
Apache License 2.0
67 stars 23 forks source link

The Message won't successfully send to Linux #2

Open sulichuan opened 4 years ago

sulichuan commented 4 years ago

Hi I am trying to send some ROS data from Windows10 to Linux. I use Simulink to send sensor data to Linux with the message type"autoware_msgs/DetectedObjectArray". It didn't show any result When I played "rostopic echo" in Linux while the program is running. But it can be received in Matlab and Simulink. I tried to send the other data with the other message type like "geomatry_msgs/Vector3", "sensor_msgs/Pointcloud2", and "autoware_msgs/Cloudcluster", and they would successfully send to Linux and Linux would show data when playing "rostopic echo". Here are the message type that has the same problem: "autoware_msgs/DetectedObject" "autoware_msgs/LaneArray" "autoware_msgs/lane" "autoware_msgs/waypoint" "autoware_msgs/WapointState" The main device uses Matlab 2018b Software in Windows10, and the other device uses ROS version is 1.14.3 in Ubuntu18.04. Is there any way to solve this problem?

By the way, I found that the message type named "autoware_msgs/waypoint" is different from Autoware.ai, the Autoware.ai named "autoware_msgs/Waypoint" with "W", and the Autoware_Toolbox named "autoware_msgs/waypoint" with "w". The Different letter caused the Linux shows "cannot load message class are your messages built?" when running the program.

horverno commented 3 years ago

Same issue here. @sulichuan did you found a solution for that?

sulichuan commented 3 years ago

I deleted Autoware_Toolbox from Matlab and Installed Autoware_msgs form Autoware.ai into Matlab It worked!!

gfigneczi1 commented 3 years ago

Hi @sulichuan yes with @horverno we experienced the same problem. Indeed, autoware toolbox under Matlab has a wrong naming using small letters instead of capitals.. I guess installing the messages from the autoware.ai is a solution, what we did is that for messages with wrong definition and/or naming we redefined the .msg files (and updated the cmakelist as well), and then used the rosgenmsg command within matlab, which is also part of the autoware extension createCustomMessages.m script. That would regenerate all messages and the it worked fined for us!