[spawn_urdf-4] process has died
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].
Asked by Jhon Smith on 2022-09-08 06:23:31 UTC
Answers
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
Asked by ravijoshi on 2022-09-08 23:03:28 UTC
Comments
After doing sudo apt install ros-noetic-tf2 ros-noetic-tf2-ros Still have the same issue
Asked by Jhon Smith on 2022-09-09 09:29:53 UTC
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.
Asked by ravijoshi on 2022-09-09 21:29:31 UTC
Comments
Cross-posed https://stackoverflow.com/q/73651371/1175065
Asked by ravijoshi on 2022-09-08 23:01:05 UTC