Interbotix / interbotix_ros_rovers

ROS Packages for Interbotix Rovers
BSD 3-Clause "New" or "Revised" License
31 stars 31 forks source link

ROS 1 Quick Start Guide - Failed to load the robot in Rviz on the remote machine #69

Closed psykaunot closed 1 month ago

psykaunot commented 1 month ago

Question

I was following the Quick Start Guide https://docs.trossenrobotics.com/interbotix_xslocobots_docs/ros_interface/ros1/quickstart.html, on the physical robot, there is no issue but on the remote machine, when I use: roslaunch interbotix_xslocobot_descriptions remote_view.launch

Rviz opened but the robot is not loaded as you can see in the picture below: image

Here is what happened in the terminal: `locobot-admin@locobotadmin:~/interbotix_ws$ roslaunch interbotix_xslocobot_descriptions remote_view.launch ... logging to /home/locobot-admin/.ros/log/1c1abc80-288c-11ef-a799-f378e58eb97d/roslaunch-locobotadmin-319373.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://10.30.46.92:33735/

SUMMARY

PARAMETERS

NODES /locobot/ rviz (rviz/rviz)

ROS_MASTER_URI=http://10.30.46.92:11311

process[locobot/rviz-1]: started with pid [319405] `

When I tried this command roslaunch interbotix_xslocobot_descriptions remote_view.launch rviz_frame:=locobot/base_link as suggested in #25 , only the base of the robot is displayed in rviz (see below) and I would like to use the robot for real-life navigation

image

Additionally, the troubleshooting with the IP address did not helped to save the issue https://docs.trossenrobotics.com/interbotix_xslocobots_docs/troubleshooting.html as recommended here #47

Robot Model

locobot_wx250s

Operating System

Ubuntu 20.04

ROS Version

ROS 1 Noetic

Additional Info

No response

psykaunot commented 1 month ago

I forgot to mention it but: roslaunch interbotix_xslocobot_descriptions remote_view.launch rviz_frame:=map and roslaunch interbotix_xslocobot_descriptions remote_view.launch --wait or roslaunch interbotix_xslocobot_descriptions remote_view.launch rviz_frame:=locobot/odom gave the same result. Which is only the white envelope like in the first picture I sent and the output in the terminal is also the same for all of them (as the one also given above)

psykaunot commented 1 month ago

I added both line below to the locobot's bashrc file and now there is no issue in rviz. The robot can even move with the 2D Nav button:

export ROS_MASTER_URI=http://IP_OF_THE_REMOTE_PC:11311 export ROS_HOSTNAME=IP_OF_THE_LOCOBOT

lukeschmitt-tr commented 1 month ago

Everything should be good then? This issue can be closed with the fix mentioned in your latest comment?

psykaunot commented 1 month ago

There is another issue during the navigation, related to rtabmap (error in red) and some warning about tf concerning the base_footprint. However, it doesn't prevent navigating or mapping. I'll probably open another issue in a few weeks regarding this.