Unity-Technologies / ROS-TCP-Endpoint

ROS package used to create an endpoint to accept ROS messages sent from a Unity scene using the ROS TCP Connector scripts
Apache License 2.0
177 stars 118 forks source link

ros_tcp_endpoint can't connect to ros2 rolling #167

Open jlkee123 opened 1 year ago

jlkee123 commented 1 year ago

Describe the bug ros_tcp_endpoint can't connect to ros2 rolling. give below errors

/opt/ros/rolling/lib/python3.10/site-packages/rclpy/executors.py:780: UserWarning: MultiThreadedExecutor is used with a single thread. Use the SingleThreadedExecutor instead. [ros2run]: Segmentation fault

To Reproduce Steps to reproduce the behavior:

  1. run 'ros2 run ros_tcp_endpoint default_server_endpoint --ros-args -p ROS_IP:=1xx.xx.x.x' in ubuntu terminal
  2. Click on 'play button over at Unity windows PC'
  3. See error

Console logs / stack traces

jlkee@jlkee-ThinkPad-E14-Gen-2:~/ros-tcp-connector$ ros2 run ros_tcp_endpoint default_server_endpoint --ros-args -p ROS_IP:=192.168.1.120
[INFO] [1686222339.152750512] [UnityEndpoint]: Starting server on 192.168.1.120:10000
[INFO] [1686222344.932709639] [UnityEndpoint]: Connection from 192.168.1.10
[INFO] [1686222344.985584038] [UnityEndpoint]: RegisterSubscriber(/tf, <class 'tf2_msgs.msg._tf_message.TFMessage'>) OK
[ros2run]: Segmentation fault

Expected behavior I expected Unity and ROS2 to be connected and see 'blue arrows' at Unity side

Screenshots image

Environment (please complete the following information, where applicable):

Additional context I tried with ROS2 humble using another laptop and connection was established successfully with 'blue arrows' seen.