Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ros 2 migration plan anvit #1190

Open
wants to merge 7 commits into
base: ros2
Choose a base branch
from
Open

Ros 2 migration plan anvit #1190

wants to merge 7 commits into from

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?

@@ -291,7 +295,7 @@ def monitor_battery_voltage(self) -> None:

# 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

@@ -71,5 +73,5 @@ def publish(self, _: rospy.timer.TimerEvent) -> None:

if __name__ == "__main__":
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

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

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