How to resolve RobotModel and Costmap error?

asked 2022-12-18 00:02:00 -0500

tiho_bg gravatar image

Hello,

I have no physical ROS robot and therefore I wanted to start working with gazebo. I'm using ubuntu 16.04, ROS1 kinetic. I've installed the following packages:

sudo apt-get install ros-noetic-navigation
sudo apt-get install ros-noetic-slam-gmapping

Turtlebot3 installation:
sudo apt-get update
sudo apt-get upgrade

$ cd ~/catkin_ws/src/
$ git clone https://github.com/ROBOTIS-GIT/turtlebot3_msgs.git -b kinetic-devel
$ git clone  https://github.com/ROBOTIS-GIT/turtlebot3.git -b kinetic-devel
$ cd ~/catkin_ws && catkin_make

~/catkin_ws/src/
$ git clone https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git
$ cd ~/catkin_ws && catkin_make

cd
gedit .bashrc

Inside the bashrc file, put the following aliases to make it easier to access different executables in the alias section.

alias burger='export TURTLEBOT3_MODEL=burger'
alias waffle='export TURTLEBOT3_MODEL=waffle'
alias tb3fake='roslaunch turtlebot3_fake turtlebot3_fake.launch'
alias tb3teleop='roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch'
alias tb3='roslaunch turtlebot3_gazebo turtlebot3_empty_world.launch'
alias tb3maze='roslaunch turtlebot3_gazebo turtlebot3_world.launch'
alias tb3house='roslaunch turtlebot3_gazebo turtlebot3_house.launch'

also, at the end of the file, write the following commands

source /opt/ros/noetic/setup.bash
source /home/akoubaa/catkin_ws/devel/setup.bash
export TURTLEBOT3_MODEL=waffle
export SVGA_VGPU10=0

After starting the following instruction:

roslaunch turtlebot3_navigation turtlebot3_navigation.launch map_file:=/home/user/maps/tb3map/tb3_house_map.pgm

I received the following error:

[map_server-3] process has died [pid 7970, exit code 255, cmd /opt/ros/kinetic/lib/map_server/map_server /home/user/maps/tb3map/tb3_house_map.pgm __name:=map_server __log:=/home/user/.ros/log/91d3ec66-7de9-11ed-b7ac-18cf5e4e3aef/map_server-3.log]. log file: /home/user/.ros/log/91d3ec66-7de9-11ed-b7ac-18cf5e4e3aef/map_server-3*.log I have also RobotModel Error and Costmap Error in rviz!

Please help me to resolve this issue!

edit retag flag offensive close merge delete