Skip to content

Commit ff16f52

Browse files
committed
Change the tpye of ns from string to StringMsg
Signed-off-by: C88-YQ <1409947012@qq.com>
1 parent 7c62b88 commit ff16f52

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

proto/gz/msgs/entity_factory_with_ns.proto

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ option java_package = "com.gz.msgs";
2121
option java_outer_classname = "EntityFactoryWithNsProtos";
2222

2323
/// \ingroup gz.msgs
24-
/// \interface EntityFactory
24+
/// \interface EntityFactoryWithNs
2525
/// \brief Message with namespace to create new entities at a given pose.
2626
/// An entity can be created in one of the following ways:
2727
///
@@ -34,6 +34,7 @@ import "gz/msgs/header.proto";
3434
import "gz/msgs/light.proto";
3535
import "gz/msgs/model.proto";
3636
import "gz/msgs/pose.proto";
37+
import "gz/msgs/stringmsg.proto";
3738
import "gz/msgs/spherical_coordinates.proto";
3839

3940
message EntityFactoryWithNs
@@ -67,8 +68,8 @@ message EntityFactoryWithNs
6768
/// \brief New name for the entity, overrides the name on the SDF.
6869
string name = 8;
6970

70-
/// \brief New namespace for the entity, overrides the namespace on the SDF.
71-
string ns = 9;
71+
/// \brief Optional new namespace for the entity, overrides the namespace on the SDF.
72+
StringMsg ns = 9;
7273

7374
/// \brief Whether the server is allowed to rename the entity in case of
7475
/// overlap with existing entities.

0 commit comments

Comments
 (0)