RobotecAI / ros2-for-unity

High-performance ROS2 solution for Unity3D
Apache License 2.0
436 stars 55 forks source link

communication with ROS2 and custom message build procedure #108

Open sawan-kcl opened 1 month ago

sawan-kcl commented 1 month ago

Hello, I recently installed this package and everything seems to be working correctly but the topic being published/subscribed in the example script do not seem to be detectable by my local ROS2 installation. Did i miss any steps?

Few information that might be useful:

I'm using Ubuntu 22.04 with ROS2 humble.

Also, please could you tell me what is the procedure to include and use custom ROS2 messages that reside in local repository in my ROS2 workspace?

s-m-asjad commented 1 month ago

Can you try adding Application.runInBackground = true; inside your void start() ?

I had similar issues on Windows with Unity - ROS2 Humble.

s-m-asjad commented 1 month ago

For custom messages, I am not sure if the procedure is different but I have been following these steps to add a custom message on Windows. We have to rebuild the ROS2 Unity asset each time I add a new custom message.