How to Use ROS2 Jazzy and Gazebo Harmonic for Robot Simulation

  Рет қаралды 9,670

robot mania

robot mania

Күн бұрын

Пікірлер
@amina673
@amina673 Ай бұрын
Hi, thanks a lot for sharing your codes and knowledge with the Robotic community.
@robotmania8896
@robotmania8896 Ай бұрын
Hi amin a! Thanks for watching my video! It is my pleasure if my video has helped you!
@MikeZ2024
@MikeZ2024 2 ай бұрын
Excellent video. Code worked exactly as presented. Thanks.
@robotmania8896
@robotmania8896 2 ай бұрын
Hi MikeZ! Thank you for watching my video! It is my pleasure if this video has helped you!
@a.t10
@a.t10 3 ай бұрын
you are a awesome. thank you for everything that you do.
@robotmania8896
@robotmania8896 3 ай бұрын
Hi A. T.! It is my pleasure if my videos help you!
@selehadinhabesi3855
@selehadinhabesi3855 4 күн бұрын
I want to use this but with teleop_twist_keyboard instead of joystick. what changes should i do? thanks for the amazing package
@robotmania8896
@robotmania8896 3 күн бұрын
Hi Selehadin HABEŞİ! Thanks for watching my video! In that case, you should modify the “robot_control.py” script. In lines 105~130, modify the code to subscribe to the “cmd_vel” topic. You also have to comment out lines 119 ~ 126.
@exystaaxyde8988
@exystaaxyde8988 4 ай бұрын
Hello, i have a problem when using gz sim on my terminal the GUI instantly crashes. The gazebo sim window popups but it seems to only be a screenshot of what is on my monitor and i need to manually kill it. I used the recommended command to install : "sudo apt-get install ros-${ROS_DISTRO}-ros-gz" with my ros2 jazzy installation. I tried to reinstall both gazebo and ros2. Any ideas on how i may be able to fix it?
@robotmania8896
@robotmania8896 4 ай бұрын
Hi exysta axyde! Are there any errors in the terminal? Also, does your computer have enough computational capabilities to run the Gazebo?
@kaizoku_04
@kaizoku_04 4 ай бұрын
@@robotmania8896 same issue here :(
@kaizoku_04
@kaizoku_04 4 ай бұрын
@@robotmania8896 [ruby $(which gz) sim-1] [GUI] [Err] [Ogre2RenderEngine.cc:1301] Unable to create the rendering window: OGRE EXCEPTION(3:RenderingAPIException): currentGLContext was specified with no current GL context in GLXWindow::create at ./.obj-x86_64-linux-gnu/gz_ogre_next_vendor-prefix/src/gz_ogre_next_vendor/RenderSystems/GL3Plus/src/windowing/GLX/OgreGLXWindow.cpp (line 165) this error was on the terminal
@robotmania8896
@robotmania8896 4 ай бұрын
@@kaizoku_04 Hi Mohannad Rababah! Thanks for watching my video! Do you have any errors in the turminal?
@kaizoku_04
@kaizoku_04 4 ай бұрын
@@robotmania8896 yes ! .. a bunch of errors and this is the first one between them : "" [ruby $(which gz) sim-1] [GUI] [Err] [Ogre2RenderEngine.cc:1301] Unable to create the rendering window: OGRE EXCEPTION(3:RenderingAPIException): currentGLContext was specified with no current GL context in GLXWindow::create at ./.obj-x86_64-linux-gnu/gz_ogre_next_vendor-prefix/src/gz_ogre_next_vendor/RenderSystems/GL3Plus/src/windowing/GLX/OgreGLXWindow.cpp (line 165) "" ....... when I open the home for gazebo using gz sim nothing happens until I enter a project. thank you for replying
@borislavmarinov9637
@borislavmarinov9637 21 күн бұрын
Hello, I am trying to move a prismatic joint with this setup for controllers, but I am uncertain which controller I would need to be able to control it as the position commander itself does not fully work for it. This video has been really helpful with understanding how different components interact and integrate, but it has proven difficult for me to expand beyong and find out what is needed.
@robotmania8896
@robotmania8896 19 күн бұрын
Hi Borislav Marinov” Thanks for watching my video! I am using prismatic joints in this tutorial. Please refer to the code to get an idea of how to use it. For example, I am using it in the “robot_sliding_base.xacro” file. kzbin.info/www/bejne/nYOoeoJ6YsitnJo
@borislavmarinov9637
@borislavmarinov9637 19 күн бұрын
@@robotmania8896 I took a look at it and it does seem to be what I need. I was just wondering if you know of a way to handle movement due to gravity when initiallly running the simulation if the prismatic joint is vertical
@robotmania8896
@robotmania8896 18 күн бұрын
@@borislavmarinov9637 In that case, I think you should use force control for your joint.
@edoardodanna850
@edoardodanna850 27 күн бұрын
HI! I have some issues with the installation of slam_toolbox on ros2 Jazzy version. Using your robot, I am not able to display the slam environment on rviz2. Do you have any advice? thanks in advance.
@robotmania8896
@robotmania8896 27 күн бұрын
Hi Edoardo D'Anna! Thanks for watching my video! What exactly do you mean by “slam environment”? Do you have any errors in the terminal?
@edoardodanna850
@edoardodanna850 26 күн бұрын
@@robotmania8896 Basecally the map of SLAM. There is a warning in the /map topic, particularly "no map received"
@robotmania8896
@robotmania8896 25 күн бұрын
@@edoardodanna850 This message means that the map is probably not published. Have you generated a map and placed it into the right directory?
@nazlee98
@nazlee98 28 күн бұрын
Hi, would like to ask, how do i want to control using /cmd_vel ?
@robotmania8896
@robotmania8896 27 күн бұрын
Hi Na Zlee! Thanks for watching my video! In that case, please subscribe to “/cmd_vel” topic and use linear.x, linear.y and angular.z values.
@Mecha_Hacks
@Mecha_Hacks 2 ай бұрын
I have an issue, my robot model spawns perfectly in rviz2 but when i spawn it in gazebo only one or two joints are visible and spawned, other 3-4 joints arent visible, the terminal successfully spawns all the joints, but not visible in gazebo, help!!
@robotmania8896
@robotmania8896 2 ай бұрын
Hi Mecha_Hacks! Thanks for watching my video! So, I assume that several links of your robot are not visible. Please check whether you have specified dae file directory correctly.
@elastico_007
@elastico_007 3 ай бұрын
hi i have issues with ros2_control ackerman steering control i have made 2 steer joints and 4 drive joints.i can steer using /position using my steer joints and /velocity using rear drive joint. but i couldn't move my front drive joints and also how to limit steer angles? do you have any example script running in teleop_twist_keyboard
@robotmania8896
@robotmania8896 3 ай бұрын
Hi ELASTICO! In the Ackerman steering control, you suppose to steer front wheels and rotate rear wheels, so you cannot do that. I don’t have example script for the “teleop_twist_keyboard”. If you are using this package, I think you just have to subscribe to the “cmd_vel” topic.
@elastico_007
@elastico_007 3 ай бұрын
@@robotmania8896 but the front drive joints are not rotating only steering is done.is there is anyway to make like dummy front wheels?
@robotmania8896
@robotmania8896 3 ай бұрын
I think that if you would like to apply rotation to front wheels anyway, you should make a ros2 control plugin.
@elastico_007
@elastico_007 3 ай бұрын
@@robotmania8896 can I do navigation with plugin?
@robotmania8896
@robotmania8896 3 ай бұрын
@@elastico_007 Yes, you can. But your plugin should publish “odom” topic.
@elastico_007
@elastico_007 3 ай бұрын
Hi I'm modelling a Ackerman chassis car in fusion and converting it to urdf. Can I give streer joint and rotation joint at the same place? And both joints are perpendicular?
@robotmania8896
@robotmania8896 3 ай бұрын
Hi ELASTICO! Thanks for watching my video! Yes, you can. I have several videos with Ackerman steering mechanism. You can refer to URDF files for those videos.
@imenmabrouk6769
@imenmabrouk6769 Ай бұрын
Hi . Is this works for ros2 humble et gazebo fortress?
@robotmania8896
@robotmania8896 Ай бұрын
Hi Imen Mabrouk! Thanks for watching my video! No, I don’t think so. I think you will need to change “gz” to “ign” in several parts of the code.
@imenmabrouk6769
@imenmabrouk6769 Ай бұрын
@robotmania8896 thanks for your response! From your experience, do you recommend using the humble with the Fortress? Or to move on?
@robotmania8896
@robotmania8896 Ай бұрын
@@imenmabrouk6769 I recommend you use Jazzy with Harmonic in order to avoid rewriting your code using new API. Since in the future you will have to move to the newer version inevitably.
@hemanthreddy8317
@hemanthreddy8317 4 ай бұрын
Hello, can i know how you craeted these robot files. Can you please help me appreciate it.
@robotmania8896
@robotmania8896 4 ай бұрын
Hi hemanth reddy! Thanks for watching my video! What do you mean by “robot files”? Are you talking about URDF files and STL, DAE files?
@hemanthreddy8317
@hemanthreddy8317 4 ай бұрын
@@robotmania8896 yes, can I know how can I create the urdf and launch files from cad.
@robotmania8896
@robotmania8896 4 ай бұрын
May be there are scripts that convert CAD file to URDF file, but I personally always write URDF files and launch files based on the files I created in previous projects. I recommend you take one of my URDF/launch files as an example and write your own file. If you get used to it, it will not be that difficult.
@elastico_007
@elastico_007 4 ай бұрын
hi i want to use intel d435i in the gazebo sim and i couldn't find plugin can you suggest how to do?
@robotmania8896
@robotmania8896 4 ай бұрын
Hi ELASTICO! Thanks for watching my video! I cannot find plugin for Gazebo sim either. I guess you have to wait till someone make it, or you should make it yourself.
@elastico_007
@elastico_007 4 ай бұрын
Hi Thanks I added rgbd camera plugin in gazebo sim and used Ros gazebo bridge. And I can visualise depth and camera in rqt image view but not in rviz2 it's like blank white screen.
@robotmania8896
@robotmania8896 4 ай бұрын
@@elastico_007 If I remember correctly, if there are no topics received, there will be “No image” writing in the window. So, probably the topic is received correctly. But I cannot tell you anything else specific.
@อภิวัฒน์พิทักษ์ศิลป์
@อภิวัฒน์พิทักษ์ศิลป์ 3 ай бұрын
Thank you for making very good content. what if I don't have the controller, how can I use keyboard to control the robot? Could you please suggest?
@robotmania8896
@robotmania8896 3 ай бұрын
Hi อภิวัฒน์ พิทักษ์ศิลป์! Thanks for watching my video! If you would like to use a keyboard, you can use this package to publish commands. cmower/ros2-keyboard: Keyboard driver for ROS 2. (github.com)
@nguyenng6737
@nguyenng6737 2 ай бұрын
​@@robotmania8896 The ros-noetic-teleop-twist-keyboard is for ROS, and cmower/ros2-keyboard is for ROS 2, right? Can you give me an example of this?
@robotmania8896
@robotmania8896 2 ай бұрын
@@nguyenng6737 You can find an example in this page github.com/cmower/ros2-keyboard under the “Example:” section.
@ZacharyReid-t9l
@ZacharyReid-t9l 4 ай бұрын
Having issues running colcon build in scr dir due to cmake
@ZacharyReid-t9l
@ZacharyReid-t9l 4 ай бұрын
edit: forgot to set up ros /sorce ect
@robotmania8896
@robotmania8896 4 ай бұрын
Hi Zachary Reid! Thanks for watching my video! So, now you can build the packages successfully?
@allaboutcontrollers
@allaboutcontrollers 4 ай бұрын
gazebo command is not working on the terminal
@robotmania8896
@robotmania8896 4 ай бұрын
Hi AllAboutControllers! Thanks for watching my video! What kind of command are you trying to execute?
@benterki_aboubakerseddiq3993
@benterki_aboubakerseddiq3993 4 сағат бұрын
thank you for sharing but i have a warning [gazebo-1] Warning [Utils.cc:132] [/sdf/model[@name="fws_robot"]/link[@name="base_footprint"]/sensor[@name="lidar_head_link"]/lidar/frame_id::L126]: XML Element[frame_id], child of element[lidar], not defined in SDF. Copying[frame_id] as children of [lidar]. could you please tell me how to solve it
@omarsalem5832
@omarsalem5832 4 ай бұрын
Thank you!
@robotmania8896
@robotmania8896 4 ай бұрын
Hi Omar Salem! My pleasure!
@gamingstudio2433
@gamingstudio2433 Ай бұрын
Colcon build is. Not working
@robotmania8896
@robotmania8896 Ай бұрын
Hi GaMiNg sTuDiO. What errors do you have?
@daffarandika3148
@daffarandika3148 4 ай бұрын
hey, I have an issue when running the launch file from your code. And after troubleshooting I was able to determine that the error is from gazebo, any time I run gz sim `something something` it doesn't show anything but the terminal is indicating that the program is still running, so I checked the ~/.gz/auto_default.log file and found this error: "GUI requesting list of world names. The server may be busy downloading resources. Please be patient.". Can you please help me, appreciate it.
@daffarandika3148
@daffarandika3148 4 ай бұрын
your launch file (and all gz sim program) worked after rebooting my PC, not sure why though
@robotmania8896
@robotmania8896 4 ай бұрын
Hi Daffa Randika! Thanks for watching my video! This happens probably because Gazebo downloads some files when you launch it for the very first time.
@sherlockholmes4035
@sherlockholmes4035 2 ай бұрын
I tried to run the following node in launch file: spawn = Node( package='ros_gz_sim', executable='create', arguments=[ '-entity', 'my_robot', '-string', 'robot_description', ], output='screen', ) I am not getting any errors but it's showing like this. [create-4] [INFO] [1728369743.553537559] [ros_gz_sim]: Requesting list of world names. I am using humble with fortress.
@robotmania8896
@robotmania8896 2 ай бұрын
Hi Chennam Sunil Kumar! Thanks for watching my video! I have never used fortress, so I cannot tell for sure, but to launch Gazebo, you have to execute the “gz_sim.launch.py” file like this. Please refer to the “main.launch.py” script that I have provided. gazebo = IncludeLaunchDescription( PythonLaunchDescriptionSource([os.path.join( get_package_share_directory('ros_gz_sim'), 'launch'), '/gz_sim.launch.py']), launch_arguments=[ ('gz_args', [LaunchConfiguration('world'), '.sdf', ' -v 4', ' -r'] ) ] )
@sherlockholmes4035
@sherlockholmes4035 2 ай бұрын
@@robotmania8896 thanks for that ☺️
How to Use MoveIt with Isaac Sim: A Step-by-Step Guide
18:43
robot mania
Рет қаралды 2,4 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
How to upgrade your ROS project to the New Gazebo
25:03
Articulated Robotics
Рет қаралды 7 М.
Building a ros2_control System | ROS2 Control with the JetBot Part 2
20:34
Path Planning Using Diffusion
11:32
robot mania
Рет қаралды 218
Building a ROS Robot for Mapping and Navigation #1
19:53
James Bruton
Рет қаралды 228 М.
How to use DeepStream with Jetson Orin Nano and ROS2
14:59
robot mania
Рет қаралды 9 М.
Gazebo Classic to Gazebo Sim: Essential Upgrade Before Jan 2025!
26:51
The Construct Robotics Institute
Рет қаралды 3 М.
Easy inverse kinematics for robot arms
5:49
RoTechnic
Рет қаралды 95 М.
Solving the problem EVERY robot has (with ros2_control)
24:36
Articulated Robotics
Рет қаралды 95 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН