Skip to content
Discussion options

You must be logged in to vote

The name of the arguments used in the Duration constructor are wrong.
You should replace this:

goal_msg.max_runtime = Duration(seconds=5, nanoseconds=0)

with this:

goal_msg.max_runtime = Duration(sec=5, nanosec=0)

See https://docs.ros2.org/latest/api/builtin_interfaces/msg/Duration.html

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sebastianfer
Comment options

Answer selected by sebastianfer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forum_ros2 Forum post about general ROS 2 usage
2 participants