Robotisim / robotics_software_engineer

Curated Learning Path for Robotics Software Engineer . Theory , Programming and Research
https://www.robotisim.com/
15 stars 16 forks source link

URDF cannot be loaded #35

Closed badriawan closed 1 month ago

badriawan commented 1 month ago

Describe your issue

try to launch using rviz.launch.py on module Robot Creation URDF on video Robot Structure Tree with URDF . Follow all of the instructions and script but urdf link cannot appear on RVIZ and error happened

Steps to reproduce ( commands you ran - in order )

ros2 launch rviz.launch.py

What was the expected result?

base link , camera link , and lidar link

Put here any screenshots or videos link

[INFO] [launch]: Default logging verbosity is set to INFO [INFO] [robot_state_publisher-1]: process started with pid [1434404] [INFO] [rviz2-2]: process started with pid [1434406] [robot_state_publisher-1] [WARN] [1720496664.997129607] [robot_state_publisher]: No robot_description parameter, but command-line argument available. Assuming argument is name of URDF file. This backwards compatibility fallback will be removed in the future. [robot_state_publisher-1] Error: Error reading end tag. [robot_state_publisher-1] at line 100 in ./urdf_parser/src/model.cpp [robot_state_publisher-1] Failed to parse robot description using: urdf_xml_parser/URDFXMLParser [robot_state_publisher-1] terminate called after throwing an instance of 'std::runtime_error' [robot_state_publisher-1] what(): Unable to initialize urdf::model from robot description [rviz2-2] [INFO] [1720496665.322212801] [rviz2]: Stereo is NOT SUPPORTED [rviz2-2] [INFO] [1720496665.322436413] [rviz2]: OpenGl version: 4.6 (GLSL 4.6) [rviz2-2] [INFO] [1720496665.351467833] [rviz2]: Stereo is NOT SUPPORTED [ERROR] [robot_state_publisher-1]: process has died [pid 1434404, exit code -6, cmd '/opt/ros/humble/lib/robot_state_publisher/robot_state_publisher /home/yusuf/ros2_ws/install/ros_fundamental/share/ros_fundamental/urdf/diff_drive.urdf --ros-args']. [INFO] [rviz2-2]: process has finished cleanly [pid 1434406]

badriawan commented 1 month ago

Screenshot from 2024-07-09 12-19-37

noshluk2 commented 1 month ago

In line 5 to 8 , where link tags are created tags are not closed

it should have /> at the end

for example : <link name="base_link" />