Update rmp220_middleware.py

Cythonize for possible efficiency gains
This commit is contained in:
bjoernellens1 2023-08-15 18:12:35 +02:00 committed by GitHub
parent 7cbea942da
commit cfedad9ac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,6 +101,8 @@ class StateMachineNode(Node):
self.latest_cmd_vel = msg self.latest_cmd_vel = msg
# TODO: Add setting chassis state to enabled automatically upon receiving commands (with filter maybe) # TODO: Add setting chassis state to enabled automatically upon receiving commands (with filter maybe)
# TODO: try to cythonize code.
def timer_callback(self): def timer_callback(self):
#self.cmd_vel_pub.publish(self.twist) #self.cmd_vel_pub.publish(self.twist)
#self.cmd_vel_callback(self.cmd_vel_sub) #self.cmd_vel_callback(self.cmd_vel_sub)