I’m guessing there is something wrong with my code but I’m not seeing it. I believe I defined the matrix and vector appropriately. Please help me see what I’m doing wrong. Here is my source:
########################################################
import rospy, math, numpy as np
from std_msgs.msg import Float32MultiArray
from utilities import reset_world
I faced the exact same issue when I was learning that course.
The solution is to add rospy.sleep(1.0) after initializing the publisher.
rospy.init_node(‘holonomic_controller’, anonymous=True)
pub = rospy.Publisher(‘wheel_speed’, Float32MultiArray, queue_size=10)
rospy.sleep(1.0) # add the line here <<<----------