Local planner question

#1

Can someone please tell me which topics are published and subscribed to when there is an obstacle within the range ?

#2

This forum is not just for the PX4/avoidance repo. You need to explain the context of your question.

As I suspect you are talking about the local_planner in the PX4/avoidance repo, here is where you can find the list of published topics: https://github.com/PX4/avoidance/blob/master/local_planner/src/nodes/local_planner_node.cpp#L39

1 Like
#3

great thank-you very much … however would you tell me which specific topics gets published or subscriber when the drone gets within the range of an obstacle ?

#4

@lioneleeedadad All topics are being published whether or not it is seeing an obstacle

1 Like
#5

I mean which topics take place or task when there is an obstacle ?

#6

@lioneleeedadad do you mean which MAVLink message is used to communicate with PX4?

#7

exactly and also I need to know how is the velocity of motors is sent to the px4 ?

#8

@baumanta can probably tell you which MAVLink message is used.

how is the velocity of motors is sent to the px4 ?

There are more controllers at work, have a read here: https://dev.px4.io/master/en/concept/architecture.html

2 Likes
#9

I don’t mean the messages. I mean which commands controls the motors to switch it on or switch it off .

#10

@Jaeyoung-Lim I guess this is now the right place to discuss my problem … So I have read the architecture on https://dev.px4.io/en/ and I still don’t know how to stop the spinning of the motors in order to switch them off ?

#11

@Omar1 I have already answered to that question on slack

#12

@Jaeyoung-Lim Fine I’ll check it

#13

@Jaeyoung-Lim Thanks a lot

#14

In the avoidance ReadMe, the is a nice table listing all message flows between avoidance and PX4 firmware: https://github.com/PX4/avoidance#message-flows