Robotics-Nav2-SLAM-Example icon indicating copy to clipboard operation
Robotics-Nav2-SLAM-Example copied to clipboard

ROS2 Communication not working

Open Massittha opened this issue 3 years ago • 3 comments

When I start ROS node , running ros2 launch unity_slam_example unity_slam_example.py, and enter Unity play mode, no communication is initiated. The Rviz map doesn't fill and the arrows on the top left corner in Unity play mode remain red. The terminal keeps showing as the image below image Is there possibly something that I missed?

Thanks

Massittha avatar Aug 04 '22 05:08 Massittha

My bad, I tried running ros2 run ros_tcp_endpoint default_server_endpoint --ros-args -p ROS_IP:=127.0.0.1 -p ROS_TCP_PORT:=7000 and the map started filling up.

However, previously when I tried running the server endpoint using port = 10000 by default, following these tutorials for ROS2 Demo,https://github.com/Unity-Technologies/Unity-Robotics-Hub/blob/main/tutorials/ros_unity_integration/setup.md, everything had been working fine until recently it stopped working for some reasons. So I needed to change the port to get it working again.

What could be the reason for this? And how do you actually determine the port value?

I am completely new to this and have no idea how the port works. I would really appreciate it if anyone could briefly explain or give me some pointers.

Thanks

Massittha avatar Aug 04 '22 08:08 Massittha

@Massittha Hi,I also meet the same problem with you when I run the ros2 launch unity_slam_example unity_slam_example.py in the https://github.com/Unity-Technologies/Robotics-Nav2-SLAM-Example/blob/main/readmes/run_example.md: image image image Besides,I also try to run ros2 run ros_tcp_endpoint default_server_endpoint --ros-args -p ROS_IP:=127.0.0.1 -p ROS_TCP_PORT:=7000 you mentioned later But this time it doesn't even show the RViz: image So what should I do to solve the problem,hope you can give me some advice

nowhereman1999 avatar Dec 25 '22 06:12 nowhereman1999

Starting the ROS node and running ros2 launch unity_slam_example unity_slam_example.py does not work.

캡처

MetaSonGi avatar Nov 01 '23 08:11 MetaSonGi