Closed kindofausername closed 3 years ago
saved my day!
You may prefer tf2 since tf is now deprecated: rosrun tf2_tools view_frames.py
which requires sudo apt install ros-noetic-tf2-tools
first.
But anyway, tf is still there, could anyone merge this, please? Maybe @tfoote? Maybe rebased into noetic-devel though, since only Noetic is running with py3 by default.
You may prefer tf2 since tf is now deprecated: roslaunch tf2_tools view_frames.py which requires sudo apt install ros-noetic-tf2-tools first.
Very minor: that suggestion should be rosrun
instead of roslaunch
, like rosrun tf2_tools view_frames.py
.
And +1 for targeting noetic
, much agreed!
I opened a similar PR - this whole code block is useless nowadays, so the problem can be also resolved by removing the check: #222
@tfoote +1 <3
+1 @mikeferguson maybe?
Replaced by #222
Thank you, you saved me
how can i edit this file ? it refuses to be edited, it is secured !
Wanted to use
$ rosrun tf view_frames
Listening to /tf for 5.0 seconds Done Listening b'dot - graphviz version 2.40.1 (20161225.0304)\n' Traceback (most recent call last): File "/opt/ros/melodic/lib/tf/view_frames", line 119, in
generate(dot_graph)
File "/opt/ros/melodic/lib/tf/view_frames", line 89, in generate
m = r.search(vstr)
TypeError: cannot use a string pattern on a bytes-like object
Simply adding the .decode('utf-8') to m = r.search(vstr.decode('utf-8')) fixed it.