ZJU-FAST-Lab / ego-planner

GNU General Public License v3.0
1.41k stars 281 forks source link

On which topic position and velocity commands for tajactory is published? #26

Closed shubham-shahh closed 3 years ago

shubham-shahh commented 3 years ago

Hi, I am trying to merge the planner with Iris copter in the gazebo with intel realsense D435, I am passing the iris odom data and pont cloud data to ego planner, I am using the /planning/pos_cmd topic data to move the Iris copter but, /planning/pos_cmd publishes final goal and the copter reaches the goal without following the copter.

Which topic shall I listen to, to move the Iris copter based on the trajactory generated? @bigsuperZZZX @USTfgaoaa

bigsuperZZZX commented 3 years ago

/planning/pos_cmd is the right topic for these commands, there must be something wrong. Please subscribe to various visualization topics in rviz to find out the mistake. Also, you can compare the outputs between the original code downloaded from this repo and your modified code to discover unnormal behaviors.

shubham-shahh commented 3 years ago

Hi @bigsuperZZZX thanks for the response, I am using this repo for simulation.

so ideally, /planning/pos_cmd should publish the trajectory points sequentially, right?

bigsuperZZZX commented 3 years ago

That's right.

shubham-shahh commented 3 years ago

since I am using gazebo simulator, how can I stop S03 simulator?

bigsuperZZZX commented 3 years ago

Just comment that node in https://github.com/ZJU-FAST-Lab/ego-planner/blob/master/src/planner/plan_manage/launch/simulator.xml

shubham-shahh commented 3 years ago

Just comment that node in https://github.com/ZJU-FAST-Lab/ego-planner/blob/master/src/planner/plan_manage/launch/simulator.xml

shall I comment so3_quadrotor_simulator and nodelet, both the nodes?

bigsuperZZZX commented 3 years ago

Both nodes

shubham-shahh commented 3 years ago

Both nodes

okay, thank you so much for the help, I'll try it

shubham-shahh commented 3 years ago

Both nodes

I am publishing the /planning/poa_cmd data on /mavros/setpoint_raw/local topic, is the that correct mavros topic?

shubham-shahh commented 3 years ago

Hi @bigsuperZZZX thanks for the response, I am using this repo for simulation.

so ideally, /planning/pos_cmd should publish the trajectory points sequentially, right?

What are the major changes to be made to adopt ego planner to https://github.com/HKPolyU-UAV/E2ES this gazebo simulation

bigsuperZZZX commented 3 years ago

Both nodes

I am publishing the /planning/poa_cmd data on /mavros/setpoint_raw/local topic, is the that correct mavros topic?

They are incompatible.

I am not familiar with https://github.com/HKPolyU-UAV/E2ES, but that's true that the /planning/pos_cmd topic is the output of the planner to some controllers, so you should find some way or write some code by yourselves to make your drone receive, recognize and execute the /planning/pos_cmd.

shubham-shahh commented 3 years ago

Both nodes

I am publishing the /planning/poa_cmd data on /mavros/setpoint_raw/local topic, is the that correct mavros topic?

They are incompatible.

I am not familiar with https://github.com/HKPolyU-UAV/E2ES, but that's true that the /planning/pos_cmd topic is the output of the planner to some controllers, so you should find some way or write some code by yourselves to make your drone receive, recognize and execute the /planning/pos_cmd.

Okay thanks for all the help