ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ROS-TCP-Connector C# Unity subscriber callback never fires

asked 2021-11-01 15:38:10 -0500

jkovacich gravatar image

Hi,

I am trying to test the viability of the Ros TCP Connector library for Unity to displaying large point clouds. I have created: Added the com.unity.robotics.ros-tcp-connector library

I have created a PointCloudSubscriber game object that takes in a PointCloud2 message type. i have configured by Ros1 connection through the Robotics tab, I am pointing to local host because I'm running the node locally. I feel reasonably comfortable that it is properly connecting to ROS, it errors out when I pick a bad IP or port. I've got logging messages for when the subscriber is created and when callbacks are executed and my callback is never triggered.

I am running the ROS Endpoint node.

Please let me know of any information I can provide beyond what I've said here.

edit retag flag offensive close merge delete

Comments

moving to the "answers" section.

jkovacich gravatar image jkovacich  ( 2021-11-02 09:49:09 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-11-02 09:49:51 -0500

jkovacich gravatar image

Success! I was able to work through my issues. I ran into a couple things that I had done wrong.

1) I had initially set the IP of the ROS connection to my ROS core node instead of the TCP Endpoint node. 2) I had created a ROS Connection game object and filled it with info, but then discovered the Robotics dropdown tab and had been using that. Under the hood my subscriber will still using the game object instead of the dropdown menu option. Reenabling the game object, and setting it to the TCP connection node instead of ROS master was enough to get things to work.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-11-01 15:38:10 -0500

Seen: 395 times

Last updated: Nov 02 '21