ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How can i use the gazebo?

asked 2022-01-23 06:01:24 -0500

RoboTBiLL gravatar image

Hello,

I'm a beginner at ROS and Gazebo, so I don't know how to combine the two of them. Initially, I created a launch file that runs two py files of a mobile differential drive robot. How do I import these files into the gazebo? Where can I find the files that the mobile robot will show because I do not have them? Τhat is the chassis's dimensions, wheels' dimensions, and more.

Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2022-01-23 06:56:56 -0500

Mike Scheutzow gravatar image

You should start by installing ros, then installing one of the simulation packages someone else already has working. The turtlebot3 one is a good choice if you want to learn about controlling a robot with wheels. You can begin at:

http://wiki.ros.org/turtlebot3_simula...

You can also search for tutorials on the wiki about specific subjects, and gain experience by examining the turtlebot3 files. It will take some effort - there are dozens of files and a lot of concepts to understand.

edit flag offensive delete link more

Comments

I have already installed ROS and the gazebo. I have made a launch file that I run with the roslaunch command, but I do not know how to integrate my own files in the gazebo.

How do I download what you sent me?

RoboTBiLL gravatar image RoboTBiLL  ( 2022-01-23 12:20:25 -0500 )edit
1

Follow these steps in your terminal window to install the turtlebot3 simulation package -

  • cd catkin_ws
  • cd src
  • git clone https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git (this is the download link which needs to be cloned into your workspace)
  • cd ..
  • catkin_make or catkin build (whichever you use for building your workspace)

Doing this will install the turtlebot3 in your catkin workspace which you can start using for learning.

Robo_guy gravatar image Robo_guy  ( 2022-01-23 23:58:20 -0500 )edit

Thank you very much! I will try it.... Can I integrate my py files into this package? But I saw that this package has only cpp files.

RoboTBiLL gravatar image RoboTBiLL  ( 2022-01-24 01:56:00 -0500 )edit

Yes, it has cpp files but you can integrate your python files also and use it.

Robo_guy gravatar image Robo_guy  ( 2022-01-24 02:45:08 -0500 )edit

I tried to compile with the command "catkin_make" but I came across this issue https://imgur.com/oJAmQNu

RoboTBiLL gravatar image RoboTBiLL  ( 2022-01-24 06:20:06 -0500 )edit

Ok maybe that link I mentioned was for melodic, my bad did not notice it, you are using noetic right, try this

 git clone https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git
Robo_guy gravatar image Robo_guy  ( 2022-01-24 06:40:21 -0500 )edit

Yes, I use noetic

RoboTBiLL gravatar image RoboTBiLL  ( 2022-01-24 06:43:00 -0500 )edit

Ok, use the command I mentioned in my previous comment, the error should go mostly.

Robo_guy gravatar image Robo_guy  ( 2022-01-24 06:45:29 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-01-23 06:01:24 -0500

Seen: 84 times

Last updated: Jan 23 '22