Skip to content

Refactor for rmw_wait/rmw_waitset changes - #9

Merged
jackieokay merged 1 commit into
masterfrom
waitset_handle
Jan 13, 2016
Merged

jackieokay merged 1 commit into
masterfrom
waitset_handle

Conversation

@jackieokay

Copy link
Copy Markdown
Contributor

Connects to ros2/rmw#49

Comment thread rmw_fastrtps_cpp/src/functions.cpp Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When returning an error code it must set the error message before using RMW_SET_ERROR_MSG.

Same below.

@dirk-thomas

Copy link
Copy Markdown
Member

Some of the new code has a different indentation then the existing code. While we might not like eProsimas style why might still want to use the same one in their code.

Comment thread rmw_fastrtps_cpp/src/functions.cpp Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check seems to be unnecessary since it is essentially the same as waitset->data.

@jackieokay

Copy link
Copy Markdown
Contributor Author

Yes, I'm not sure what to do about indentation in this repo. Running uncrustify on functions.cpp on master branch gives a lot of code style divergences. I can try to replicate the existing style, for example, 4 spaces of indentation seems consistent throughout the file. But there are some cases where the existing style looks weird to me, like where tabs are used instead of spaces...

@dirk-thomas

Copy link
Copy Markdown
Member

I would suggest to stay as close as possible to the style of the file. Mostly 4 space indentation. If you touch a line with tabs change it to spaces - otherwise keep it. eProsima does not use uncrustify (or anything else) so don't bother running it 😉

@richiprosima

Copy link
Copy Markdown
Contributor

Not, we're not use any indention checker or anything. In all my development environments I have configured my Vim with 4 space indention. But my recently Ubuntu distro to develop ROS2 doesn't. Sorry. You are free to use anything you want.

@jackieokay

Copy link
Copy Markdown
Contributor Author

No worries! 4 spaces is fine, and it's better to keep the indentation size consistent throughout the file anyway.

jackieokay added a commit that referenced this pull request Jan 13, 2016
Refactor for rmw_wait/rmw_waitset changes
@jackieokay
jackieokay merged commit 7631ef1 into master Jan 13, 2016
@jackieokay
jackieokay deleted the waitset_handle branch January 13, 2016 01:48
@sloretz sloretz mentioned this pull request Oct 18, 2018
21 of 24 tasks
mauropasse pushed a commit to mauropasse/rmw_fastrtps that referenced this pull request Nov 19, 2020
…cutor

Rename ExecutorEventCallback -> EventsExecutorCallback
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.

3 participants