@@ -57,6 +57,11 @@ void defineSimLink(py::object module)
57
57
py::arg (" name" ),
58
58
" Get the ID of a collision entity which is an immediate child of "
59
59
" this link." )
60
+ .def (" sensor_by_name" , &gz::sim::Link::SensorByName,
61
+ py::arg (" ecm" ),
62
+ py::arg (" name" ),
63
+ " Get the ID of a sensor entity which is an immediate child of "
64
+ " this link." )
60
65
.def (" visual_by_name" , &gz::sim::Link::VisualByName,
61
66
py::arg (" ecm" ),
62
67
py::arg (" name" ),
@@ -65,13 +70,20 @@ void defineSimLink(py::object module)
65
70
.def (" collisions" , &gz::sim::Link::Collisions,
66
71
py::arg (" ecm" ),
67
72
" Get all collisions which are immediate children of this link." )
73
+ .def (" sensors" , &gz::sim::Link::Sensors,
74
+ py::arg (" ecm" ),
75
+ " Get all sensors which are immediate children of this link." )
68
76
.def (" visuals" , &gz::sim::Link::Visuals,
69
77
py::arg (" ecm" ),
70
78
" Get all visuals which are immediate children of this link." )
71
79
.def (" collision_count" , &gz::sim::Link::CollisionCount,
72
80
py::arg (" ecm" ),
73
81
" Get the number of collisions which are immediate children of "
74
82
" this link." )
83
+ .def (" sensor_count" , &gz::sim::Link::SensorCount,
84
+ py::arg (" ecm" ),
85
+ " Get the number of sensors which are immediate children of this "
86
+ " link." )
75
87
.def (" visual_count" , &gz::sim::Link::VisualCount,
76
88
py::arg (" ecm" ),
77
89
" Get the number of visuals which are immediate children of this "
0 commit comments