Robotics StackExchange | Archived questions

when I try to run the command ros2 launch my_box_bot_description urdf_visualize.launch.py I got error name 'robot_state_publisher' is not defined**

Hello, I am creating a box in URDF that I want to view on Rviz2. I am using Ros2 Humble on Ubuntu 22.04. I created my urdfvisualize.launch.py ​​file in my myboxbotdescription package. I also have my boxbotsimple.urdf file. Now when I try to run the command ros2 launch myboxbotdescription urdfvisualize.launch.py I got error : All log files can be found below /home/drabo/.ros/log/2023-05-16-16-24-39-169597-drabo-VirtualBox-28610 [INFO] [launch]: Default logging verbosity is set to INFO Fetching URDF ==> [ERROR] [launch]: Caught exception in launch (see debug for traceback): Caught exception when trying to load file of format [py]: name 'robotstatepublisher' is not defined Can you help me

Asked by 54ibrahimsenan@gmail.com on 2023-05-16 10:22:53 UTC

Comments

Answers