ros-teleop / teleop_tools

A set of generic teleoperation tools for any robot.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

joy_teleop crashes when publishing a message with header

Kettenhoax opened this issue · comments

On ROS2 foxy, joy_teleop fails to convert rclpy.Time to builtin_interfaces.msg.Time when setting the header stamp.

...
  File "/opt/ros/foxy/lib/python3.8/site-packages/joy_teleop/joy_teleop.py", line 402, in joy_callback
    command.run(self, msg)
  File "/opt/ros/foxy/lib/python3.8/site-packages/joy_teleop/joy_teleop.py", line 235, in run
    msg.header.stamp = node.get_clock().now()
  File "/opt/ros/foxy/lib/python3.8/site-packages/std_msgs/msg/_header.py", line 131, in stamp
    assert \
AssertionError: The 'stamp' field must be a sub message of type 'Time'