Skip to content

Commit

Permalink
Remove 'efficient copy' prints (#625) (#626)
Browse files Browse the repository at this point in the history
Matching ros/geometry2#530

(cherry picked from commit 4b84838)

Co-authored-by: Matthijs van der Burgh <matthijs.vander.burgh@live.nl>
  • Loading branch information
mergify[bot] and MatthijsBurgh committed Sep 5, 2023
1 parent 5a6c429 commit c723256
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tf2_ros_py/tf2_ros/buffer_interface.py
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))

0 comments on commit c723256

Please sign in to comment.