Tf2_tools view_frames - No executable found

Hi The Construct Team,

I am on the ROS2 Basics in 5 Days Galactic (C++) course and I am getting this error:

user:~$ source /opt/ros/galactic/setup.bash
user:~$ ros2 run tf2_tools view_frames.py
No executable found
user:~$

I tried to do sudo apt install ros-galactic-tf2-tools but that fails.

Output of sudo apt install
user:~$ sudo apt install ros-galactic-tf2-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  ros-galactic-tf2-tools
1 upgraded, 0 newly installed, 0 to remove and 413 not upgraded.
Need to get 8388 B of archives.
After this operation, 0 B of additional disk space will be used.Err:1 http://packages.ros.org/ros2/ubuntu focal/main amd64 ros-galactic-tf2-tools amd64 0.17.2-1focal.20210819.184515
  404  Not Found [IP: 64.50.233.100 80]
E: Failed to fetch http://packages.ros.org/ros2/ubuntu/pool/main/r/ros-galactic-tf2-tools/ros-galactic-tf2-tools_0.17.2-1focal
.20210819.184515_amd64.deb  404  Not Found [IP: 64.50.233.100 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Please fix this.

Thanks,
Girish

Hello @girishkumar.kannan ,

You don’t need to install anything, you have to run the command without the .py extension, like so:

ros2 run tf2_tools view_frames

I’ve already updated the notebook with this.

@albertoezquerro ,

Tried again. It works!

Thanks,
Girish

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.