Robotics StackExchange | Archived questions

joint_state_publisher.JointStatePublisher() : RuntimeError: The robot_description parameter is required and not set.

Using package joint_state_publisher_gui I have got error:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Traceback (most recent call last):
  File "/catkin_ws/src/joint_state_publisher/joint_state_publisher_gui/scripts/joint_state_publisher_gui", line 52, in <module>
    joint_state_publisher.JointStatePublisher(),
  File "<string>", line 145, in __init__
RuntimeError: The robot_description parameter is required and not set.
[joint_state_publisher_gui-5] process has died [pid 2312, exit code 1, cmd /catkin_ws/src/joint_state_publisher/joint_state_publisher_gui/scripts/joint_state_publisher_gui __name:=joint_state_publisher_gui __log:=/root/.ros/log/92b711c6-d4ba-11ed-9f24-84ef18e4fe30/joint_state_publisher_gui-5.log].
log file: /root/.ros/log/92b711c6-d4ba-11ed-9f24-84ef18e4fe30/joint_state_publisher_gui-5*.log

Asked by dvogureckiy99 on 2023-04-06 15:40:49 UTC

Comments

Two quick comment/questions:

  1. could you clarify why you built the package(s) from source? Ubuntu 20.04 gets prebuilt binary packages which can be installed using apt. There should be almost no need to build things like joint_state_publisher from source.
  2. please clarify why you are attempting to run the JSP as root. Running ROS nodes as root is not a good idea in almost all cases, and is not something that should be done unless there is a good reason. For the JSP, I can not really come up with a good reason, but perhaps you have one.

Asked by gvdhoorn on 2023-04-07 01:44:39 UTC

Answers