ZJU-FAST-Lab / ego-planner

GNU General Public License v3.0
1.31k stars 268 forks source link

some question about uav_simulator #43

Closed Mealoore closed 1 year ago

Mealoore commented 2 years ago

When using your so3 simulator, I publish the command

header: 
  seq: 21
  stamp: 
    secs: 0
    nsecs:         0
  frame_id: ''
position: 
  x: nan
  y: nan
  z: nan
velocity: 
  x: 0.0
  y: 0.0
  z: 0.0
acceleration: 
  x: 0.0
  y: 0.0
  z: 0.0
yaw: 2.0
yaw_dot: 0.0
kx: [0.0, 0.0, 0.0]
kv: [0.0, 0.0, 0.0]
trajectory_id: 0
trajectory_flag: 0

the height of uav is not correct, I think it should be at original point

bigsuperZZZX commented 2 years ago

I'm not quite sure about that. You could compare the original messages from the traj_server node with your messages to find the problem.

Mealoore commented 2 years ago

As for my question, that is to say, how should I pub the message, for speed control and yaw or yaw rate control?

bigsuperZZZX commented 2 years ago

The simulator does not support yaw rate control. As for other control methods, please check this function for the details. There are too many flags and code logics that I can't remember precisely.

Mealoore commented 2 years ago

The simulator does not support yaw rate control. As for other control methods, please check this function for the details. There are too many flags and code logics that I can't remember precisely.

how about yaw control? I just need speed control and yaw control without position control.

bigsuperZZZX commented 2 years ago

Please check that function of dozens of lines to find your solution.