Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 'efficient copy' prints (backport #625) #627

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 0 additions & 3 deletions tf2_ros_py/tf2_ros/buffer_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,14 +339,11 @@ def convert(a: TransformableObject, b_type: TransformableObjectType) -> Transfor
#check if an efficient conversion function between the types exists
try:
f = c.get_convert((type(a), b_type))
print("efficient copy")
return f(a)
except TypeException:
if type(a) == b_type:
print("deep copy")
return deepcopy(a)

f_to = c.get_to_msg(type(a))
f_from = c.get_from_msg(b_type)
print("message copy")
return f_from(f_to(a))