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

sensor_msgs/image doesn't open in build #64

Open
Strubu opened this issue Jun 9, 2023 · 1 comment
Open

sensor_msgs/image doesn't open in build #64

Strubu opened this issue Jun 9, 2023 · 1 comment

Comments

@Strubu
Copy link

Strubu commented Jun 9, 2023

Hi,

I am publishing an image via the ros tcp endpoint.
In the Unity editor the picture shows up with no problem. But when I build the project, the image windows does not show up (not even a "waiting for message"). The connection arrows also don't react to the publication of the image (when set at an interval of e.g. 2 sec).

Anybody got some idea how to debug this, since this problem only shows up in the build version (tested Linux AND Windows), not in the editor (other topic types are sent/received fine)

@Strubu
Copy link
Author

Strubu commented Jun 9, 2023

Fixed it.
You need to copy the ImageMsg.shader file to Resources folder since line 52 in ImageDefaultVisualizer asks for

"m_CheapTextureMaterial = new Material(Shader.Find("Unlit/ImageMsg"));"

and that only work in Editor mode.

Which brings up the question: Is this all just supposed to run in editor mode? Because no one ever checked if the image sensor message actually works during runtime...

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

1 participant