simulation/gz_bridge: remove proceeding px4_ from servos in gazebo model (#20998)

Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
This commit is contained in:
Benjamin Perseghetti 2023-01-24 19:56:11 -05:00 committed by GitHub
parent 684b4a4b8a
commit 60de5b3ea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 14 deletions

View File

@ -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<gz::msgs::Double>(servo_topic));