Closed Legohead259 closed 9 months ago
After reducing script to minimal publisher (0bf950c), topics show up as expected when agent is connected. Could be an issue with one of the services not initializing properly? Need to implement #5 .
When the FOC algorithm is introduced, the Micro-ROS instance seems to freeze. Could be an issue with the FOC algorithm holding things up
Kept the FOC initialization, but removed the motor.loopFOC()
call in the motor control task. The system works as intended and the ROS interface is handled. Seems to be something with this function. Perhaps a core panic? Or a sensor read issue.
What if the loopFOC()
and angularPosition
publisher are stepping on each other (race condition)? Should try disabling the angularPosition
publisher to check.
Removing the angularPosition
publisher and replacing the loopFOC()
call seems to have fixed this particular problem. I believe the theory about the race condition is correct. #23 should be implemented and this retested to confirm.
Issue has not appeared since #27. Closing for now.
Describe the bug Most of the time, the publishers and services will not start on connection to the host ROS2 system They will be listed in the
ros2 topic list
andros2 service list
command outputs, but calling the services or echoing the topics will not yield any output.To Reproduce Steps to reproduce the behavior:
ros2 topic list
orros2 service list
ros2 topic echo /angular_position
) or service (ex:ros2 service call /set_motor_direction motor_interfaces/SetMotorDirection "{direction: false}"
Expected behavior Topics and services should show up and be live as soon as ROS2 agent is connected