Skip to content

Conversation

@AnvitD
Copy link

@AnvitD AnvitD commented Apr 17, 2024

Description

I migrated the navigator_test, mil_tools , navigator_gui ,and mil_poi packages to ROS2.

Screenshot or Video

Related Issues

- 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.

Copy link
Member

@cbrxyz cbrxyz left a comment

Choose a reason for hiding this comment

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

Thank you! Also, can you review whether CMakeLists.txt + package.xml will need to change for each package?

# Sets the battery voltage to 'Unknown' if no message has been current in 15s
if (
(rospy.Time.now() - self.battery_voltage["stamp"]) > rospy.Duration(15)
(rclpy.Time.now() - self.battery_voltage["stamp"]) > rclpy.Duration(15)
Copy link
Member

Choose a reason for hiding this comment

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

rclpy.Time.now() does not exist in ROS 2

monitor = HostMonitor()
rospy.Timer(rospy.Duration(10), monitor.publish, oneshot=False)
rospy.spin()
rclpy.Timer(rclpy.Duration(10), monitor.publish, oneshot=False)
Copy link
Member

Choose a reason for hiding this comment

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

Timers aren't created in the same way either, you want to use your node to make timers

self.get_logger().info("Camera info found!")
return self.camera_info
rospy.sleep(0.2)
rclpy.sleep(0.2)
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't work either

@cbrxyz cbrxyz changed the title Ros 2 migration plan anvit Migrated navigator_test, navigator_gui, mil_poi, and mil_tools from ROS1 to ROS2 Dec 29, 2024
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.

3 participants