I would like to control the robot using the teleop_twist_keyboard. What changes do you recommend?
@robotmania8896
4 ай бұрын
Hi sirine mrabet! Thanks for watching my video! In this case you have to modify mainly the “Joy_subscriber”. You should create a subscriber which subscribes to the “geometry_msgs/msg/Twist” message type.
@sirinemrabet8226
4 ай бұрын
@@robotmania8896 thank you i'm grateful,i will try it and see
@sirinemrabet8226
4 ай бұрын
@@robotmania8896 Hi! , Thank for providing me with this solution, and this the current change i made teleop_node = Node( package='teleop_twist_keyboard', executable='teleop_twist_keyboard', name='teleop_node', parameters=[{'use_sim_time': use_sim_time}], remappings=[('/cmd_vel','/cmd_vel')] ) but unfortunately i faced this error in terminal : [teleop_twist_keyboard-4] Traceback (most recent call last): [teleop_twist_keyboard-4] File "/opt/ros/humble/lib/teleop_twist_keyboard/teleop_twist_keyboard", line 33, in [teleop_twist_keyboard-4] sys.exit(load_entry_point('teleop-twist-keyboard==2.4.0', 'console_scripts', 'teleop_twist_keyboard')()) [teleop_twist_keyboard-4] File "/opt/ros/humble/lib/python3.10/site-packages/teleop_twist_keyboard.py", line 134, in main [teleop_twist_keyboard-4] settings = saveTerminalSettings() [teleop_twist_keyboard-4] File "/opt/ros/humble/lib/python3.10/site-packages/teleop_twist_keyboard.py", line 120, in saveTerminalSettings [teleop_twist_keyboard-4] return termios.tcgetattr(sys.stdin) [teleop_twist_keyboard-4] termios.error: (25, 'Inappropriate ioctl for device') [ERROR] [teleop_twist_keyboard-4]: process has died [pid 46515, exit code 1, cmd '/opt/ros/humble/lib/teleop_twist_keyboard/teleop_twist_keyboard --ros-args -r __node:=teleop_node --params-file /tmp/launch_params_4ejy8jfk -r /cmd_vel:=/cmd_vel'].
@tianxie3954
Ай бұрын
I am really curious. How long have you been coding for? The repos that you shown here are some of the most advanced ROS2 tutorials on KZitem...
@robotmania8896
Ай бұрын
Hi tian xie! I've been coding for 15 years roughly. But I personally think that the most important is to understand theory behind the code. Also, valuable skill nowadays is to find information (code) quickly, combine it with your knowledge and get outcome you want.
@boukermouchemohammed8729
4 ай бұрын
Thank you for this video. I have a question. Do you have any information that could be helpful for me? I have a cliff sensor in Gazebo and I want to publish the values taken by this sensor in a topic to use them in my code. However, I am unsure of how to do this. I believe I may need to find a plugin for the cliff sensor, but I have been unable to locate one. Below is my code for the cliff sensor. true 50 true 50 1.0 -0.0436 0.0436 0.01 0.15 1.0 >
@robotmania8896
4 ай бұрын
Hi BOUKERMOUCHE Mohammed! Thanks for watching my video! I have never heard of a “cliff sensor” plugin in Gazebo. Generally, cliff is detected by depth or by ultrasonic sensor. In this video I am doing something similar to cliff detection. I hope it will help you. kzitem.info/news/bejne/u2uZ4K59noR7Z6Q
@Build_the_Future
4 ай бұрын
Can you make Tutorials for NVIDIA Issac Gym or Issac Sim. The current ones on KZitem are poor, and I think you would be able to do a good job at it
@robotmania8896
4 ай бұрын
Hi Eric L! Thanks for watching my video! I am also interested in Issac related stuff. So, I will make video about it. But it will take some time.
@Build_the_Future
4 ай бұрын
@@robotmania8896 I look forward to it!
@PriyaGupta-vm8pj
5 ай бұрын
Great Video, But want be te good to use TEB Planner or as other planner like want be they easy to use..?? And How its different from other.
@robotmania8896
5 ай бұрын
Hi Priya Gupta! Thanks for watching my video! If you are using a planner, you need to create a cost map first, but with this solution, map is not required.
@temitopeibrahimamosa2885
28 күн бұрын
Thank you for providing this tutorial and the code. please, guide me. The robot is loading upside down in gazebo. It only load correctly when ros2_control is installed but the robot fail to move
@robotmania8896
27 күн бұрын
Hi Temitope Ibrahim Amosa! Thanks for watching my video! What do you mean by “fail to move”? Are there any errors in the terminal?
@vilsonwenisbelle9041
5 ай бұрын
Another great video, thanks.
@robotmania8896
5 ай бұрын
Thank you!
@nguyenduygiang1162
5 ай бұрын
Amazing
@robotmania8896
5 ай бұрын
Thank you!
@imenmabrouk6769
4 ай бұрын
Hi again, Mr. Robot Mania. When I run colcon build and execute the same command as you, I encounter this error. Can you help me fix it? [spawner-8] [ERROR] [1715279022.029006578] [robot_1.robot_1_spawn_controller_forward_velocity_controller]: Controller manager not available [spawner-7] [ERROR] [1715279022.029102598] [robot_1.robot_1_spawn_controller_joint_state_broadcaster]: Controller manager not available [ERROR] [spawner-7]: process has died [pid 106496, exit code 1, cmd '/opt/ros/humble/lib/controller_manager/spawner joint_state_broadcaster --controller-manager controller_manager --ros-args -r __node:=robot_1_spawn_controller_joint_state_broadcaster -r __ns:=/robot_1']. [ERROR] [spawner-8]: process has died [pid 106498, exit code 1, cmd '/opt/ros/humble/lib/controller_manager/spawner forward_velocity_controller --controller-manager controller_manager --ros-args -r __node:=robot_1_spawn_controller_forward_velocity_controller -r __ns:=/robot_1']. [spawn_entity.py-5] [ERROR] [1715279042.001339962] [cam_bot_spawn_entity]: Service %s/spawn_entity unavailable. Was Gazebo started with GazeboRosFactory? [spawn_entity.py-5] [ERROR] [1715279042.002769885] [cam_bot_spawn_entity]: Spawn service failed. Exiting. [ERROR] [spawn_entity.py-5]: process has died [pid 106492, exit code 1, cmd '/opt/ros/humble/lib/gazebo_ros/spawn_entity.py -entity robot_1 -x -1.8 -y 1.8 -z 0.1 -R 0.0 -P 0.0 -Y 0.0 -topic /robot_1_robot_description --ros-args -r __node:=cam_bot_spawn_entity -r /robot_state_publisher:=robot_1_robot_state_publisher']. [gzserver-1] Error Code 12 Msg: Unable to find uri[model://imitation_learning_block]
@robotmania8896
4 ай бұрын
Hi Imen Mabrouk! I think you didn’t move gazebo models to a proper directory. Please see the video from 8:00~.
@imenmabrouk6769
4 ай бұрын
You are amazing 👏 thanks
@李小山-k8t
4 ай бұрын
@@robotmania8896 Great video! I have two questions about running this program. a) I encountered the following error: [spawner-7] [INFO] [1716521771.091663378] [robot_1.robot_1_spawn_controller_joint_state_broadcaster]: Waiting for '/robot_1/controller_manager' node to exist [spawner-8] [ERROR] [1716521773.097035270] [robot_1.robot_1_spawn_controller_forward_velocity_controller]: Controller manager not available [spawner-7] [ERROR] [1716521773.098957390] [robot_1.robot_1_spawn_controller_joint_state_broadcaster]: Controller manager not available [ERROR] [spawner-8]: process has died [pid 136160, exit code 1, cmd '/opt/ros/humble/lib/controller_manager/spawner forward_velocity_controller --controller-manager controller_manager --ros-args -r __node:=robot_1_spawn_controller_forward_velocity_controller -r __ns:=/robot_1']. [ERROR] [spawner-7]: process has died [pid 136158, exit code 1, cmd '/opt/ros/humble/lib/controller_manager/spawner joint_state_broadcaster --controller-manager controller_manager --ros-args -r __node:=robot_1_spawn_controller_joint_state_broadcaster -r __ns:=/robot_1'] b) The imitation_learning_stage is set to 5.4 by 5.4. If I want to make it larger, what should I do?
@GhOsT-id6qy
3 ай бұрын
@@robotmania8896 Hi i am unable to locate /.gazebo/models. i do have .gazebo but i does not have models. Even if I creat a new folder nad add the models files still same error as Imen Mabrouk "[ERROR] [spawner-7]: process has died [pid 34395, exit code 1, cmd '/opt/ros/humble/lib/controller_manager/spawner joint_state_broadcaster --controller-manager controller_manager --ros-args -r __node:=robot_1_spawn_controller_joint_state_broadcaster -r __ns:=/robot_1']." and " [ERROR] [1717306010.286564436] [cam_bot_spawn_entity]: Service %s/spawn_entity unavailable. Was Gazebo started with GazeboRosFactory? [spawn_entity.py-5] [ERROR] [1717306010.287107099] [cam_bot_spawn_entity]: Spawn service failed. Exiting." any solution??
@sirinemrabet8226
4 ай бұрын
Hi! , Thank for providing me with this solution, and this the current change i made teleop_node = Node( package='teleop_twist_keyboard', executable='teleop_twist_keyboard', name='teleop_node', parameters=[{'use_sim_time': use_sim_time}], remappings=[('/cmd_vel','/cmd_vel')] ) but unfortunately i faced this error in terminal : [teleop_twist_keyboard-4] Traceback (most recent call last): [teleop_twist_keyboard-4] File "/opt/ros/humble/lib/teleop_twist_keyboard/teleop_twist_keyboard", line 33, in [teleop_twist_keyboard-4] sys.exit(load_entry_point('teleop-twist-keyboard==2.4.0', 'console_scripts', 'teleop_twist_keyboard')()) [teleop_twist_keyboard-4] File "/opt/ros/humble/lib/python3.10/site-packages/teleop_twist_keyboard.py", line 134, in main [teleop_twist_keyboard-4] settings = saveTerminalSettings() [teleop_twist_keyboard-4] File "/opt/ros/humble/lib/python3.10/site-packages/teleop_twist_keyboard.py", line 120, in saveTerminalSettings [teleop_twist_keyboard-4] return termios.tcgetattr(sys.stdin) [teleop_twist_keyboard-4] termios.error: (25, 'Inappropriate ioctl for device') [ERROR] [teleop_twist_keyboard-4]: process has died [pid 46515, exit code 1, cmd '/opt/ros/humble/lib/teleop_twist_keyboard/teleop_twist_keyboard --ros-args -r __node:=teleop_node --params-file /tmp/launch_params_4ejy8jfk -r /cmd_vel:=/cmd_vel'].
@robotmania8896
4 ай бұрын
Hi sirine mrabet! The error says 'Inappropriate ioctl for device'. I have never encountered such an error. But I have found a post that might help you. stackoverflow.com/questions/1605195/inappropriate-ioctl-for-device
@sirinemrabet8226
4 ай бұрын
@@robotmania8896 hi ! Thank's but do the node i create is correct or there is somthing messing ?
@robotmania8896
4 ай бұрын
@@sirinemrabet8226 The node seems fine. I think you don’t need “remappings” though.
Пікірлер: 29