Error running gmapping

asked 2020-02-28 05:13:19 -0500

N1ngawolf gravatar image

updated 2022-01-22 16:10:23 -0500

Evgeny gravatar image

I've installed ROS melodic on Ubuntu 18.04.4 LTS and Im using turtlebro by voltbro. When i run "roslaunch turtlebro_navigation turtlebro_gmapping.launch" on turtlebro raspberry pi i get "ERROR: cannot launch node of type [rviz/rviz]: rviz ROS path [0]=/opt/ros/melodic/share/ros ROS path [1]=/opt/ros/melodic/share " Also i dont have topics in "by topic" like scan and map in rviz. If you need more info about PC sys and RaspberryPI sys Ill include. Help me, pls.

edit retag flag offensive close merge delete


Can you explain your setup in more detail? How are you running commands on the turtlebro robot? Do you use ssh? Do you have a monitor and keyboard connected to the pi?

Wilco Bonestroo gravatar image Wilco Bonestroo  ( 2020-02-29 06:13:50 -0500 )edit

You know, i found a mistake i made. I was running it on pi when i need to do it on PC(Im new in ROS). But now there's the new one. The rplidar node has already ran on the pi. So i just have to start this on PC but then i get this: RLException: Invalid <arg> tag: environment variable 'ROVER_MODEL' is not set.

Arg xml is <arg default="$(env ROVER_MODEL)" doc="model type [turtlebro, brover]" name="model"/> The traceback for the exception was written to the log file"

N1ngawolf gravatar image N1ngawolf  ( 2020-02-29 06:28:07 -0500 )edit

Also i dont have "/scan" topic in Rviz-Add-Bytopic. But on the turtlebro it exists and then i do "rostopic echo scan" it shows me a lot of numbers(360) which are info from rplidar, so it works but in the rviz not.

N1ngawolf gravatar image N1ngawolf  ( 2020-02-29 06:33:43 -0500 )edit

and yes, Im using ssh

N1ngawolf gravatar image N1ngawolf  ( 2020-02-29 06:35:54 -0500 )edit