Skip to content

Conversation

@baharkholdisabeti
Copy link

I didn't make a .gitignore file since there are some files other than src and CMakeLists such as our custom msg, action, and launch file, that need to be included.
Also, I did all the tasks in one node like the instructions say but I found it difficult to keep my code organized this way. I was wondering whether this is more customary or having each task (e.g. each publisher, action, etc.) be a separate node. Is there a specific way that we should organize our nodes?
Thanks in advance for the review :)
🐢🐢🐢

Copy link
Member

@wmmc88 wmmc88 left a comment

Choose a reason for hiding this comment

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

Looks pretty good. seems you got a pretty thourough understanding of ros now. wrt your question, things are organized better when nodes have a class that they instantiate and that class has members that are the action server, pubs, subs, etc. if your node is complex enough to warrant different classes, you can break them into different files and organize your code that way.

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