Question about assigning unique Solid names in a PROTO file #6803
JoelRamosBeltran
started this conversation in
General
Replies: 1 comment 1 reply
-
you need the quote around the name, hence instead of |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Is it possible to change the name of a Solid by modifying the name field of the robot?
I have the following robot PROTO:
And, in that PROTO, i have this field:
Then, I'm trying to spawn the PROTO using this service call in a Python launcher:
However, Webots logs this error:
:576:20: error: Expected string literal, found 'rbrobout/rear_laser_link'.
I'm not sure if I wrote the name assignment incorrectly, or if it's just not possible to dynamically assign unique Solid names using string concatenation like this.
I need to do this because I want to spawn multiple instances of the same PROTO robot in the simulation, each with a different name.
The TFs are being published by the WebotsController with 'set_robot_state_publisher':
Beta Was this translation helpful? Give feedback.
All reactions