Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Message won't successfully send to Linux #2

Open
sulichuan opened this issue May 19, 2020 · 3 comments
Open

The Message won't successfully send to Linux #2

sulichuan opened this issue May 19, 2020 · 3 comments

Comments

@sulichuan
Copy link

sulichuan commented May 19, 2020

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
Copy link

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

@sulichuan
Copy link
Author

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

@gfigneczi1
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants