-
Notifications
You must be signed in to change notification settings - Fork 29
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
base: ros2
Are you sure you want to change the base?
Conversation
…tion-plan-Anvit i -m"I need to updtate my branch so i can push my code"
There was a problem hiding this 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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
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