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

[spawn_urdf-4] process has died

asked 2022-09-08 09:50:22 -0500

Jhon Smith gravatar image

updated 2022-09-08 22:53:43 -0500

ravijoshi gravatar image

I am using ROS Noetic. While running the turtlebot3_gazebo package, I am getting [spawn_urdf-4] process has died error. Please see below:

roslaunch turtlebot3_gazebo turtlebot3_world.launch 
... logging to /home/jhon/.ros/log/f7b450e2-2f66-11ed-be7f-65829d2c8c3a/roslaunch-jhon-HP-EliteBook-820-G1-33071.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

xacro: in-order processing became default in ROS Melodic. You can drop the option.
started roslaunch server http://jhon-HP-EliteBook-820-G1:42699/

SUMMARY
========

PARAMETERS
 * /gazebo/enable_ros_network: True
 * /robot_description: <?xml version="1....
 * /rosdistro: noetic
 * /rosversion: 1.15.14
 * /use_sim_time: True

NODES
  /
    gazebo (gazebo_ros/gzserver)
    gazebo_gui (gazebo_ros/gzclient)
    spawn_urdf (gazebo_ros/spawn_model)

auto-starting new master
process[master]: started with pid [33081]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to f7b450e2-2f66-11ed-be7f-65829d2c8c3a
process[rosout-1]: started with pid [33092]
started core service [/rosout]
process[gazebo-2]: started with pid [33095]
process[gazebo_gui-3]: started with pid [33103]
process[spawn_urdf-4]: started with pid [33109]
Traceback (most recent call last):
  File "/opt/ros/noetic/lib/gazebo_ros/spawn_model", line 34, in <module>
    from tf.transformations import quaternion_from_euler
  File "/opt/ros/noetic/lib/python3/dist-packages/tf/__init__.py", line 30, in <module>
    from tf2_ros import TransformException as Exception, ConnectivityException, LookupException, ExtrapolationException
ImportError: cannot import name 'TransformException' from 'tf2_ros' (/home/jhon/catkin_ws/devel/lib/python3/dist-packages/tf2_ros/__init__.py)
[ INFO] [1662635482.728601602]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1662635482.730032393]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[spawn_urdf-4] process has died [pid 33109, exit code 1, cmd /opt/ros/noetic/lib/gazebo_ros/spawn_model -urdf -model turtlebot3_burger -x -2.0 -y -0.5 -z 0.0 -param robot_description __name:=spawn_urdf __log:=/home/jhon/.ros/log/f7b450e2-2f66-11ed-be7f-65829d2c8c3a/spawn_urdf-4.log].
edit retag flag offensive close merge delete

Comments

ravijoshi gravatar image ravijoshi  ( 2022-09-08 23:01:05 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-09-08 23:03:28 -0500

ravijoshi gravatar image

The error cannot import name 'TransformException' from 'tf2_ros' suggests that something is broken in the tf2_ros package. Or maybe it is unavailable. Please install it by using the following command:

sudo apt install ros-noetic-tf2 ros-noetic-tf2-ros
edit flag offensive delete link more

Comments

After doing sudo apt install ros-noetic-tf2 ros-noetic-tf2-ros Still have the same issue

Jhon Smith gravatar image Jhon Smith  ( 2022-09-09 09:29:53 -0500 )edit

Basically, somehow on your PC, from tf2_ros import TransformException statement is not working. Open your python terminal manually and please try executing above command after sourcing the ROS.

ravijoshi gravatar image ravijoshi  ( 2022-09-09 21:29:31 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-09-08 06:23:31 -0500

Seen: 427 times

Last updated: Sep 08 '22