Comments (5)
Note:
The module 3DM_GX3 can be used as a reference. It is the device used to read data from the real IMU sensor on coman.
The moudle is in iCub/main/src/libraries/icubmod/imu3dm_gx3
the IGenericSensor interface has to be implemented and the appropriate wrapper to use is the ServerInertial, which is into yarp/libYARP_dev/include/yarp/dev/ServerInertial.h
from gazebo-yarp-plugins.
I am trying to tackle this issue, but apparently there is no way to obtain the parent ModelPtr from the SensorPtr provided as an argument of the Sensor Plugin (at least I was not able to find a way: http://gazebosim.org/api/2.0.0/classgazebo_1_1sensors_1_1Sensor.html ). So it is not possible to use directly the singleton handler.
Do you think it could make sense to extend the handler to handle also sensor pointers (by using as a key the scoped name of the sensor, to avoid name clashes between robots with sensor with the same name)?
This could potentially mean a lot more values in the handler, but as long as the handler is used only in initialization I don't think this would be a big issue.
from gazebo-yarp-plugins.
I add a little clarification because I am afraid I was not clear: my idea is to use the runtime scoped name of the sensor (obtained by GetScopedName()) as a key for the handler, and to pass this key to the driver by adding it at runtime to the properties that are passed to the driver, without any sensor name/key hardcoded in the configuration files.
from gazebo-yarp-plugins.
I have implemented the proposed solution in commit d53d8ea of development branch. I am not really sure about the solution of using the ScopedName of the sensor as the key for the singleton because I find (but It can be a wrong assumption on my side) that the traditional spirit of yarp device configuration file is that everything needed to create a device (possibly using also yarpdev utility) is found in the relative .ini file.
On the other hand I think every gazebo yarp device will always be created explicitly by the relative gazebo yarp plugin (correct me if I am wrong) so having an "incomplete" configuration file is not an issue.
from gazebo-yarp-plugins.
Done in a31320c
from gazebo-yarp-plugins.
Related Issues (20)
- Conda CI failure mid December 2021 HOT 1
- Compilation against YARP master failed HOT 2
- user commands not protected by check on the current control mode HOT 1
- Compilation failure against gazebo 11.10.0 HOT 1
- Modify gazebo_yarp_camera to permit use of gazebo_yarp_robotinterface
- Suppress C4251 warnings on Windows
- Problem with right wrist of iCub3 with torque control? HOT 8
- Unable to insert iCub models properly in gazebo/windows HOT 3
- Conda CI failure End of October HOT 3
- CMake Error when linking `GazeboYARPPlugins` libraries HOT 3
- Support gpu_ray sensor type in gazebo_yarp_laser plugin HOT 1
- Coupling handlers for ergoCub hand MK3, 4 and 5 possibly incorrect HOT 18
- Abstract the `BaseCouplingHandler` andΒ `controlboard` and allow specific robots implementation downstream
- Expose fake temperature measurement in gazebo_yarp_forcetorque HOT 1
- CMake Error when linking `GazeboYARPPlugins` libraries in Windows HOT 10
- [basestate] Plugin is using `AnalogServer` wrapper which will be soon removed
- Windows CI Failure End of August 2023 caused by OpenCV 4.8.0 HOT 5
- Add Hand mk5.1 coupling handler HOT 5
- PID are not handled correctly for fingers joints in ergoCubGazeboV1 HOT 3
- Windows CI Failure mid September 2023 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gazebo-yarp-plugins.