Skip to content

Ros2 navigator utils remote control - #1195

Open
Jorge-R08 wants to merge 2 commits into
masterfrom
ros2_navigator_utils_remote_control
Open

Ros2 navigator utils remote control#1195
Jorge-R08 wants to merge 2 commits into
masterfrom
ros2_navigator_utils_remote_control

Conversation

@Jorge-R08

Copy link
Copy Markdown

Description

Migrated to ROS2 Navigator/utils/remote_control/navigator_joystick_control & Navigator/utils/remote_control/navigator_emergency_control

Screenshot or Video

ROS 2 migration, no screenshot or videos

Related Issues

Part of the ROS2 migration

- Closes #XXX

Testing

About This PR

  • I have updated documentation related to this change so that future members are aware of the changes I've made.

@cbrxyz cbrxyz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just the time calls need to be fixed

# The controller times out after 15 minutes
if (
rospy.Time.now() - self.last_joy.header.stamp > rospy.Duration(15 * 60)
rclpy.Time.now() - self.last_joy.header.stamp > rclpy.Duration(15 * 60)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rclpy.Time.now() is not allowed in ROS 2

else:
joy.header.stamp = (
rospy.Time.now()
rclpy.Time.now()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants