-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple analog sensor ROS publishers #2172
Conversation
[WIP] some computations (e.g. deg2rad etc.) still need to be checked! |
src/devices/multipleAnalogSensorsRosPublishers/IMURosPublisher.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments.
Small comment on the naming, feel free to ignore: now the relation between the ROS message type name and the YARP publisher does not follow a clear rule, could it make sense to always name the device as <MessageType>RosPublisher
for uniformity, by changing the names of the following devices:
PoseRosPublisher
-->PoseStampedRosPublisher
WrenchRosPublisher
-->WrenchStampedRosPublisher
MagfieldRosPublisher
-->MagneticFieldRosPublisher
ImuRosPublisher
-->IMURosPublisher
src/devices/multipleAnalogSensorsRosPublishers/IMURosPublisher.h
Outdated
Show resolved
Hide resolved
src/devices/multipleAnalogSensorsRosPublishers/GenericSensorRosPublisher.h
Outdated
Show resolved
Hide resolved
src/devices/multipleAnalogSensorsRosPublishers/GenericSensorRosPublisher.h
Outdated
Show resolved
Hide resolved
src/devices/multipleAnalogSensorsRosPublishers/GenericSensorRosPublisher.h
Outdated
Show resolved
Hide resolved
src/devices/multipleAnalogSensorsRosPublishers/GenericSensorRosPublisher.h
Show resolved
Hide resolved
src/devices/multipleAnalogSensorsRosPublishers/IMURosPublisher.h
Outdated
Show resolved
Hide resolved
src/devices/multipleAnalogSensorsRosPublishers/MagfieldRosPublisher.h
Outdated
Show resolved
Hide resolved
src/devices/multipleAnalogSensorsRosPublishers/PoseRosPublisher.h
Outdated
Show resolved
Hide resolved
src/devices/multipleAnalogSensorsRosPublishers/TemperatureRosPublisher.h
Outdated
Show resolved
Hide resolved
Just to understand, using more then one of these devices in the same yarprobotinterface can trigger robotology/yarp-ros#8 ? |
Generally speaking no, this issue refers to a specific case in which different nodes, belonging to the same process, publish data on the same topic. So, if the user chooses a different topic name for each publisher, everything is safe. Additionally, issue robotology/yarp-ros#8 is pretty old, many things changed and many parts of the ports/publisher core have been refactored. We need to check if this elusive bug has been fixed or not. |
Ok, perfect then. |
Good suggestion! |
…isher` , `PoseRosPublisher` , `TemperatureRosPublisher` , `WrenchRosPublisher`
78f93e1
to
400bbca
Compare
@traversaro @drdanz @Nicogene the PR is ready for merge (hopefully) |
400bbca
to
3ae20da
Compare
Added the following new devices:
IMURosPublisher
,MagfieldRosPublisher
,PoseRosPublisher
,TemperatureRosPublisher
,WrenchRosPublisher