-
Notifications
You must be signed in to change notification settings - Fork 40
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
Comments
Sorry for late reply. A little more information is needed to find out about errors. |
@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:
and these errors in ros_tcp_endpoint:
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 |
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)
The text was updated successfully, but these errors were encountered: