Using the sumo_supervisor example in /usr/local/webots/projects/default/controllers, I am able to generate and delete a vehicle (bmwx) in webots simulation using traci controller. However when I try to specify ros_automobile as my controller instead of sumo using the following modification in Objects.py file
defName = "EGO_VEHICLE%d" % index
vehicleString = "DEF " + defName + " " + model + " {\n"
#vehicleString += " translation 10000 0.5 0\n"
vehicleString += " translation -3.16697 0.317 -173.705\n"
vehicleString += " controller \"ros_automobile\"\n"
vehicleString += " sensorsSlotCenter [\n"
vehicleString += " GPS {\n"
vehicleString += " }\n"
vehicleString += " ]\n"
I get the following error ([ros_automobile] Error: Only nodes based on the 'Car' node can used the car library.)
I will highly appreciate any guidance that you guys can provide. Thank you for your time.