Hallo,
ich habe heute versucht das normale edu_drive_ros2 package zu starten mit dem shield und 4 Motoren, habe aber lauter Can transmission errors geschmissen bekommen.
root@N10:~/ros2_ws# ros2 launch edu_drive_ros2 edu_drive.launch.py
[INFO] [launch]: All log files can be found below /root/.ros/log/2024-03-23-17-05-07-728961-N10-1128
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [edu_drive_ros2_node-1]: process started with pid [1131]
[edu_drive_ros2_node-1] WARNING: Cannot open CAN device interface: CAN2
[edu_drive_ros2_node-1] # Listener start
[edu_drive_ros2_node-1] [INFO] [1711209907.874712362] [eduard.edu_drive_ros2_node]: CAN Interface: CAN2
[edu_drive_ros2_node-1] ---------------------------
[edu_drive_ros2_node-1]
[edu_drive_ros2_node-1] frequencyScale = 32
[edu_drive_ros2_node-1] inputWeight = 0.2
[edu_drive_ros2_node-1] maxPulseWidth = 100
[edu_drive_ros2_node-1] timeout = 300
[edu_drive_ros2_node-1] kp = 0.4
[edu_drive_ros2_node-1] ki = 4
[edu_drive_ros2_node-1] kd = 0
[edu_drive_ros2_node-1] antiWindup = 1
[edu_drive_ros2_node-1] responseMode = 0
[edu_drive_ros2_node-1]
[edu_drive_ros2_node-1] --- Controller #0 parameters ---
[edu_drive_ros2_node-1] gearRatio = 70
[edu_drive_ros2_node-1] encoderRatio = 64
[edu_drive_ros2_node-1] rpmMax = 140
[edu_drive_ros2_node-1] invertEnc = 1
[edu_drive_ros2_node-1] --- Drive0
[edu_drive_ros2_node-1] channel: 0
[edu_drive_ros2_node-1] kinematics: 20 0 -6.1
[edu_drive_ros2_node-1] --- Drive1
[edu_drive_ros2_node-1] channel: 1
[edu_drive_ros2_node-1] kinematics: 0 0 0
[edu_drive_ros2_node-1] ---------------------------
[edu_drive_ros2_node-1]
[edu_drive_ros2_node-1] Can transmission error for command 2, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Failed to disable device 0
[edu_drive_ros2_node-1] Can transmission error for command 18, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting frequency scaling parameter failed for device 0
[edu_drive_ros2_node-1] Can transmission error for command 36, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting differential factor of PID controller failed for device 0
[edu_drive_ros2_node-1] Can transmission error for command 4, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting maximum pulse width failed for device 0
[edu_drive_ros2_node-1] Can transmission error for command 3, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting timeout failed for device 0
[edu_drive_ros2_node-1] Can transmission error for command 48, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] Can transmission error for command 49, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting gear ratio failed for device 0
[edu_drive_ros2_node-1] Can transmission error for command 50, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] Can transmission error for command 51, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting encoder parameters failed for device 0
[edu_drive_ros2_node-1] Can transmission error for command 32, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting proportional factor of PID controller failed for device 0
[edu_drive_ros2_node-1] Can transmission error for command 33, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting integration factor of PID controller failed for device 0
[edu_drive_ros2_node-1] Can transmission error for command 34, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting differential factor of PID controller failed for device 0
[edu_drive_ros2_node-1] Can transmission error for command 35, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting differential factor of PID controller failed for device 0
[edu_drive_ros2_node-1] Can transmission error for command 5, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting response mode failed for device 0
[edu_drive_ros2_node-1] Can transmission error for command 7, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting encoder polarity failed for device 0
[edu_drive_ros2_node-1] #MotorController ERROR initializing motor controller with ID 0
[edu_drive_ros2_node-1] --------------------------------------------------------------------------
[edu_drive_ros2_node-1]
[edu_drive_ros2_node-1] frequencyScale = 32
[edu_drive_ros2_node-1] inputWeight = 0.2
[edu_drive_ros2_node-1] maxPulseWidth = 100
[edu_drive_ros2_node-1] timeout = 300
[edu_drive_ros2_node-1] kp = 0.4
[edu_drive_ros2_node-1] ki = 4
[edu_drive_ros2_node-1] kd = 0
[edu_drive_ros2_node-1] antiWindup = 1
[edu_drive_ros2_node-1] responseMode = 0
[edu_drive_ros2_node-1]
[edu_drive_ros2_node-1] --- Controller #1 parameters ---
[edu_drive_ros2_node-1] gearRatio = 70
[edu_drive_ros2_node-1] encoderRatio = 64
[edu_drive_ros2_node-1] rpmMax = 140
[edu_drive_ros2_node-1] invertEnc = 0
[edu_drive_ros2_node-1] --- Drive0
[edu_drive_ros2_node-1] channel: 0
[edu_drive_ros2_node-1] kinematics: -20 0 -6.1
[edu_drive_ros2_node-1] --- Drive1
[edu_drive_ros2_node-1] channel: 1
[edu_drive_ros2_node-1] kinematics: 0 0 0
[edu_drive_ros2_node-1] ---------------------------
[edu_drive_ros2_node-1]
[edu_drive_ros2_node-1] Can transmission error for command 2, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Failed to disable device 1
[edu_drive_ros2_node-1] Can transmission error for command 18, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting frequency scaling parameter failed for device 1
[edu_drive_ros2_node-1] Can transmission error for command 36, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting differential factor of PID controller failed for device 1
[edu_drive_ros2_node-1] Can transmission error for command 4, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting maximum pulse width failed for device 1
[edu_drive_ros2_node-1] Can transmission error for command 3, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting timeout failed for device 1
[edu_drive_ros2_node-1] Can transmission error for command 48, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] Can transmission error for command 49, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting gear ratio failed for device 1
[edu_drive_ros2_node-1] Can transmission error for command 50, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] Can transmission error for command 51, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting encoder parameters failed for device 1
[edu_drive_ros2_node-1] Can transmission error for command 32, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting proportional factor of PID controller failed for device 1
[edu_drive_ros2_node-1] Can transmission error for command 33, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting integration factor of PID controller failed for device 1
[edu_drive_ros2_node-1] Can transmission error for command 34, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting differential factor of PID controller failed for device 1
[edu_drive_ros2_node-1] Can transmission error for command 35, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting differential factor of PID controller failed for device 1
[edu_drive_ros2_node-1] Can transmission error for command 5, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting response mode failed for device 1
[edu_drive_ros2_node-1] Can transmission error for command 7, returned -1 submitted bytes instead of 16
[edu_drive_ros2_node-1] #MotorController Setting encoder polarity failed for device 1
[edu_drive_ros2_node-1] #MotorController ERROR initializing motor controller with ID 1
[edu_drive_ros2_node-1] [INFO] [1711209918.058462541] [eduard.edu_drive_ros2_node]: Instanciated robot with vMax: 0.733038 m/s and omegaMax: 2.4034 rad/s
Ich weiß nicht ob ich was falsch gemacht habe und was die nächsten Steps wären. Ich vermute enablen mit dem Wert true mit dem Service eduard/enable um dann ein cmd_vel signal auf eduard/vel/teleop zu publishen oder?