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

error when using CustomMsg #168

Open
niuwenju opened this issue Aug 26, 2024 · 3 comments
Open

error when using CustomMsg #168

niuwenju opened this issue Aug 26, 2024 · 3 comments
Labels
lack of info Further information is requested by reviewer question Further information is requested

Comments

@niuwenju
Copy link

SysCommand.publish - Unknown message class 'Livox/CustomMsg'
UnityEngine.Debug:LogError (object)
Unity.Robotics.ROSTCPConnector.ROSConnection:ReceiveSysCommand (string,string) (at C:/Users/niuwj.DIGITALCHINA/Desktop/ros_unity/ROS-TCP-Connector/com.unity.robotics.ros-tcp-connector/Runtime/TcpConnector/ROSConnection.cs:680)
Unity.Robotics.ROSTCPConnector.ROSConnection:Update () (at C:/Users/niuwj.DIGITALCHINA/Desktop/ros_unity/ROS-TCP-Connector/com.unity.robotics.ros-tcp-connector/Runtime/TcpConnector/ROSConnection.cs:587)

Not registered to publish topic '/livox/lidar'! Valid publish topics are: dict_keys([])
UnityEngine.Debug:LogError (object)
Unity.Robotics.ROSTCPConnector.ROSConnection:ReceiveSysCommand (string,string) (at C:/Users/niuwj.DIGITALCHINA/Desktop/ros_unity/ROS-TCP-Connector/com.unity.robotics.ros-tcp-connector/Runtime/TcpConnector/ROSConnection.cs:680)
Unity.Robotics.ROSTCPConnector.ROSConnection:Update () (at C:/Users/niuwj.DIGITALCHINA/Desktop/ros_unity/ROS-TCP-Connector/com.unity.robotics.ros-tcp-connector/Runtime/TcpConnector/ROSConnection.cs:587)

@Autumn60
Copy link
Contributor

Autumn60 commented Oct 7, 2024

Sorry for late reply.

A little more information is needed to find out about errors.
Could you please tell me what steps I need to take to reproduce the error?

@Autumn60 Autumn60 added question Further information is requested lack of info Further information is requested by reviewer labels Oct 9, 2024
@Xin-Lee
Copy link

Xin-Lee commented Feb 7, 2025

@Autumn60 Hi, I have the same error.

I first merged 5 commits in feature/livoxCustomMsgPublisher branch to V2.0.5, and then I tried to use RaycastLiDARLivoxCustomMsgPublisher.cs to replace the RaycastLiDARPointCloud2MsgPublisher.cs on the Lidar object.

When I play the scene, I get these two errors in Unity Editor:

Image

SysCommand.publish - Unknown message class 'Livox/CustomMsg'
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)

and these errors in ros_tcp_endpoint:

[ERROR] [1738901316.750438]: Failed to resolve message name: No module named 'Livox'

[ERROR] [1738901317.238861]: Not registered to publish topic '/livox/lidar'! Valid publish topics are: dict_keys([]) 

I don't know whether the customMsg publisher can be used now? If not, is there any way I can implement this function?

@Xin-Lee
Copy link

Xin-Lee commented Feb 12, 2025

@Autumn60 Hi, I have the same error.

I first merged 5 commits in feature/livoxCustomMsgPublisher branch to V2.0.5, and then I tried to use RaycastLiDARLivoxCustomMsgPublisher.cs to replace the RaycastLiDARPointCloud2MsgPublisher.cs on the Lidar object.

When I play the scene, I get these two errors in Unity Editor:

Image

SysCommand.publish - Unknown message class 'Livox/CustomMsg'
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)

and these errors in ros_tcp_endpoint:

[ERROR] [1738901316.750438]: Failed to resolve message name: No module named 'Livox'

[ERROR] [1738901317.238861]: Not registered to publish topic '/livox/lidar'! Valid publish topics are: dict_keys([]) 

I don't know whether the customMsg publisher can be used now? If not, is there any way I can implement this function?

I got the answer, this error is because I didn't add CustomMsg and CustomPoint into ROS workspace. First I add them by following this tutorial and then change to proper k_RosMessageName in CustomPointMsg.cs andCustomMsgMsg.cs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lack of info Further information is requested by reviewer question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants