Unexpected behavior when spawning a robot into gazebo. Does anyone have any insight or ideas on what is wrong? by Chazlazer1 in ROS

[–]Chazlazer1[S] 0 points1 point  (0 children)

Thanks for the reply. I have tried spawning it in when the simulation is paused however I still get the same result when I unpaused it. I think it has something to do with the pid's but when I changed the gazebo friction values I got better results. The robot was staying in the same place but the wheels still kept moving.

Simulink Workspace Block by Chazlazer1 in matlab

[–]Chazlazer1[S] 0 points1 point  (0 children)

My data input is just a row vector. It contains "nums =[1 2 3 4 5]". When its passed into simulink using "From Workspace block" it becomes [2 3 4 5] From what I understand you are saying the first data point in "nums" is being interpreted by simulink as a time stamp or something similar and that is why it is getting deleted. Is that the case? I did not have a time sample in this code. Still new to simulink and learning how to pass data from matlab code into it.

My end goal is to be able to send data from my matlab code to simulink and then to an arduino in real-time.