Skip to content

Commit

Permalink
add isStatic for tf to fb_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Niemeyer committed Nov 22, 2024
1 parent 0eb1ac6 commit 94a32b7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/python/gRPC/util/fb_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,11 @@ def createTransform(builder: Builder, t: int, quat: int) -> int:


def createTransformStamped(
builder: Builder, childFrame: str, headerTf: int, transform: int
builder: Builder,
childFrame: str,
headerTf: int,
transform: int,
isStatic=False,
) -> int:
"""
Create a stamped transform in flatbuffers.
Expand All @@ -1105,6 +1109,7 @@ def createTransformStamped(
childFrame: The child frame of the transform
headerTf: The pointer to the flatbuffers header of the transform
transform: The pointer to the flatbuffers transform
isStatic: Flag if it is a static tf
Returns:
A pointer to the constructed stamped transform object
Expand All @@ -1114,6 +1119,7 @@ def createTransformStamped(
TransformStamped.AddChildFrameId(builder, childFrame)
TransformStamped.AddHeader(builder, headerTf)
TransformStamped.AddTransform(builder, transform)
TransformStamped.AddIsStatic(builder, isStatic)
return TransformStamped.End(builder)


Expand Down

0 comments on commit 94a32b7

Please sign in to comment.