diff --git a/Tools/simulation/gz/models/rc_cessna/model.sdf b/Tools/simulation/gz/models/rc_cessna/model.sdf index 266689aa30..5ea036f96c 100644 --- a/Tools/simulation/gz/models/rc_cessna/model.sdf +++ b/Tools/simulation/gz/models/rc_cessna/model.sdf @@ -491,7 +491,7 @@ - + base_link left_elevon -0.07 0.4 0.08 0.00 0 0.0 @@ -511,7 +511,7 @@ - + base_link right_elevon -0.07 -0.4 0.08 0.00 0 0.0 @@ -571,7 +571,7 @@ - + base_link elevator -0.5 0 0 0 0 0 @@ -678,13 +678,13 @@ 1 0 0 0 0 1 base_link - px4_servo_0 + servo_0 -0.3 - px4_servo_0 - px4_servo_0 + servo_0 + servo_0 0.05984281113 @@ -701,13 +701,13 @@ 1 0 0 0 0 1 base_link - px4_servo_1 + servo_1 -0.3 - px4_servo_1 - px4_servo_1 + servo_1 + servo_1 0.05984281113 @@ -760,13 +760,13 @@ 1 0 0 0 0 1 base_link - px4_servo_2 + servo_2 -4.0 - px4_servo_2 - px4_servo_2 + servo_2 + servo_2 0.0 diff --git a/src/modules/simulation/gz_bridge/GZMixingInterfaceServo.cpp b/src/modules/simulation/gz_bridge/GZMixingInterfaceServo.cpp index 48bed53b95..9c7969b2dc 100644 --- a/src/modules/simulation/gz_bridge/GZMixingInterfaceServo.cpp +++ b/src/modules/simulation/gz_bridge/GZMixingInterfaceServo.cpp @@ -35,9 +35,9 @@ bool GZMixingInterfaceServo::init(const std::string &model_name) { - // /model/rascal_110_0/px4_servo_2 + // /model/rascal_110_0/servo_2 for (int i = 0; i < 8; i++) { - std::string joint_name = "px4_servo_" + std::to_string(i); + std::string joint_name = "servo_" + std::to_string(i); std::string servo_topic = "/model/" + model_name + "/" + joint_name; //std::cout << "Servo topic: " << servo_topic << std::endl; _servos_pub.push_back(_node.Advertise(servo_topic));