Local_planner_node subscriber

I’m trying to write a subscriber inside the local_planner_node however I’m not able to do that…Would someone guide me on how to do this simply ?