You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
11) Is the behavior of any of those classes depending on the state (i.e functions do different things depending on the state) ? or is the state just the known data about the bot (position, velocity, status of equipment, etc) ? 2) what in your current design prevent you from replacing the components behind the interfaces ?Christophe– Christophe2019-04-15 06:43:13 +00:00Commented Apr 15, 2019 at 6:43
-
@christophe state as in data about the bot. Currently the state is a c++ class that is passed to the ctr'sSam Hammamy– Sam Hammamy2019-04-15 11:54:32 +00:00Commented Apr 15, 2019 at 11:54
-
ok ! that clarifies my first point. And what about my second point ? And in addition, do you understand « interface » as an OO interface ? or more as the link between elements according to some kind of protocol stack ?Christophe– Christophe2019-04-15 13:24:08 +00:00Commented Apr 15, 2019 at 13:24
-
@Christophe an OO interface. I will update the question with a code example. I think it will clarify it much moreSam Hammamy– Sam Hammamy2019-04-15 13:26:59 +00:00Commented Apr 15, 2019 at 13:26
-
Do they communicate through this state object? The statement " How can I make the Agent, Odometry and PID generic such that their communication is independent of a pre-known State implementation." to me is either a massive miscommunication or so obvious to me that this must be a duplicate of some other question in an extremely obfuscated form. Is all that you are asking is how to have three interfaces that take as parameter an object which they don't know or care the implementation of?Krupip– Krupip2019-04-15 19:22:04 +00:00Commented Apr 15, 2019 at 19:22
Add a comment
|
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-cpp