Skip to content
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

Use const in ros namespace instead of #define for constants. Fix #283 #318

Merged

Conversation

romainreignier
Copy link
Contributor

As discussed, in issue #283 use constants within the ros namespace to avoid conflict with other library.
Note that I have also renamed a variable to avoid a conflict with a #define in ChibiOS.

@mikepurvis
Copy link
Member

mikepurvis commented Sep 30, 2017

Looks great, thanks!

Out of curiosity, why is the name change still necessary even after it is moved into the ros namespace?

@mikepurvis mikepurvis merged commit 6235ffb into ros-drivers:jade-devel Sep 30, 2017
@romainreignier
Copy link
Contributor Author

ChibiOS is included in my rosserial firmware and defines the same word MSG_TIMEOUTso the preprocessor replace that string in the rosserial_client code, breaking it. Now it is Ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants