You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Used for simulation and testing without physical hardware
92
+
- Provides simulated feedback and accepts commands just like the real hardware
93
+
- Useful for development and testing of algorithms before deploying to the real robot
94
+
- No risk of damaging physical equipment during testing
95
+
96
+
### Real Hardware Interface
97
+
- Connects to the actual motor controllers (ODrives) via CAN bus
98
+
- Reads real sensor data and sends commands to real motors
99
+
- Requires proper hardware setup and configuration
100
+
- Used for actual deployment and real-world testing
101
+
102
+
## Common Issues and Troubleshooting
103
+
104
+
### No Odometry or Incorrect Movement
105
+
106
+
**Symptom**: No odometry data is published, or motors turn in unexpected ways.
107
+
108
+
**Possible Cause**: ODrive controllers have incorrect CAN IDs
109
+
110
+
**Solution**:
111
+
- Check if the ODrives are configured with CAN ID 0 (left motor) and 1 (right motor)
112
+
- You can verify the CAN IDs using the ODrive Tool or by checking the configuration parameters
113
+
114
+
### Motors Turning in the Same Direction
115
+
116
+
**Symptom**: Both wheels turn in the same direction when sending rotation commands.
117
+
118
+
**Solution**:
119
+
1. Check the motor configuration in your hardware YAML file (typically in `bringup/config/`):
120
+
121
+
2. Rebuild and restart the container after modifications
122
+
123
+
### Robot Not Responding to Commands
124
+
125
+
**Symptom**: Robot doesn't move when sending velocity commands.
126
+
127
+
**Possible Causes**:
128
+
1.**Wrong topic**: Ensure you're publishing to `/cmd_vel` with the correct message type
129
+
2.**Controller not running**: Check if the controller is loaded with:
130
+
```bash
131
+
ros2 control list_controllers
132
+
```
133
+
3.**Hardware not ready**: Verify ODrive status LEDs and CAN communication
134
+
135
+
### CAN Interface Issues
136
+
137
+
**Symptom**: Communication errors or no response from hardware.
53
138
54
-
In case there is no odometry for a given link, or both motors are turing in the same direction no matter what, check if the odrives are configured with CAN ID 0 and 1.
0 commit comments