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

Ros2 launch gives an error in ros2_control_demos

asked 2023-02-06 08:15:52 -0600

takijo gravatar image

updated 2023-02-06 08:19:47 -0600

Hello

I am trying ros2_contro_demos.

Follow the tutorial,

git clone -b galactic https://github.com/ros-controls/ros2_control
git clone -b galactic https://github.com/ros-controls/ros2_controllers
git clone -b galactic https://github.com/ros-controls/ros2_control_demos

and

 rosdep install --from-paths src --ignore-src -r -y
 colcon build --symlink-install

I have finished to build with some additional packages.

But, I hit

ros2 launch rrbot_description view_robot.launch.py

I get an error below

raise SubstitutionFailure("executable '{}' not found on the PATH".format(self.name))
launch.substitutions.substitution_failure.SubstitutionFailure: executable '[<launch.substitutions.text_substitution.TextSubstitution object at 0x7f72314f7eb0>]' not found on the PATH

I have no idea what error this is.

Please help me.

thanks.

My setup is below.

Ubuntu20.04 ros2:galactic

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-02-06 09:17:21 -0600

takijo gravatar image

I debugged the launch file and found that joint_state_publisher was the cause. I don't know why, but uninstalling and reinstalling joint_state_publisher solved this problem. thanks.

edit flag offensive delete link more

Comments

I still have the problem even if I uninstall and reinstall the joint_state_publisher. Could you please provide more detail about this problem and how did you debug launch file? My setup is Ubuntu 20.04 ROS2 foxy

khinggan gravatar image khinggan  ( 2023-06-30 11:20:04 -0600 )edit

I am getting the same error while launching a launch file (unrelated to ros2_control). Could somebody fill me in as to why that is happening and how to solve it?

Kaushal gravatar image Kaushal  ( 2023-08-04 15:11:32 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2023-02-06 08:15:52 -0600

Seen: 1,130 times

Last updated: Feb 06 '23