Unity-Technologies/Unity-Robotics-Hub

Unknown message class and not registered to publish topic

mbulucay opened this issue · 0 comments

I am creating two custom ros messages and building them into unity. When I try to publish data these custom messages it is not finding the custom messages and gives me this error;

SysCommand.subscribe - Unknown message class 'nmea_messages/ais_type123'
UnityEngine.Debug:LogError (object)
Unity.Robotics.ROSTCPConnector.ROSConnection:ReceiveSysCommand (string,string) (at Library/PackageCache/com.unity.robotics.ros-tcp-connector@c27f00c6cf/Runtime/TcpConnector/ROSConnection.cs:680)
Unity.Robotics.ROSTCPConnector.ROSConnection:Update () (at Library/PackageCache/com.unity.robotics.ros-tcp-connector@c27f00c6cf/Runtime/TcpConnector/ROSConnection.cs:587)

namespace RosMessageTypes.NmeaMessages { [Serializable] public class Ais_type123Msg : Message { public const string k_RosMessageName = "nmea_messages/ais_type123"; public override string RosMessageName => k_RosMessageName;

and after gives me this error 3-4 times unity gives me this error:

Not registered to publish topic 'ais_data_t'! Valid publish topics are: dict_keys([])
UnityEngine.Debug:LogError (object)
Unity.Robotics.ROSTCPConnector.ROSConnection:ReceiveSysCommand (string,string) (at Library/PackageCache/com.unity.robotics.ros-tcp-connector@c27f00c6cf/Runtime/TcpConnector/ROSConnection.cs:680)
Unity.Robotics.ROSTCPConnector.ROSConnection:Update () (at Library/PackageCache/com.unity.robotics.ros-tcp-connector@c27f00c6cf/Runtime/TcpConnector/ROSConnection.cs:587)

When I look for the solution on the web they have 2 workspace then getting this error but I just have one work spaces.