-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/bdd exec comm #4
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
Open
bhunecke
wants to merge
13
commits into
rolling
Choose a base branch
from
feat/bdd-exec-comm
base: rolling
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c82d834
add result response and goal cancelling to goal handling in FSM loop
bhunecke eddca6f
add heartbeat feedback publishing to FSM loop
bhunecke 19f13c3
Merge branch 'rolling' into feat/bdd-exec-comm
bhunecke 37f1487
rename collab_pickplace_fsm and update includes
bhunecke 47b438f
add publishers for trinary topics
bhunecke c478006
add event topic parameter and update publishers in CollabPickplaceNode
bhunecke e69d7c2
add event publishing of exported events in CollabPickplaceNode
bhunecke a0c9b12
add loading trinary topics from config file
bhunecke 55944a8
refactor topic handling and minor fixes in CollabPickplaceNode and up…
bhunecke e31a4fd
refactor coordination node, move trinary publishing to fsm behaviours
bhunecke ee577d0
fix missing scenario context id in mockup trinary publishers and reve…
bhunecke 5a4f115
remove unused heartbeat period calculations in fsm_loop
bhunecke 76454b8
add feedback publishing to MockupCollabBehaviour
bhunecke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| located_at_pick: "/obs_policy/located_at_pick_ws" | ||
| is_held: "/obs_policy/is_held" | ||
| located_at_place: "/obs_policy/located_at_place_ws" |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| #ifndef BDD_COLLAB_BHV__UTILS_HPP | ||
| #define BDD_COLLAB_BHV__UTILS_HPP | ||
|
|
||
| #include <string> | ||
| #include <map> | ||
| #include <stdexcept> | ||
| #include <yaml-cpp/yaml.h> | ||
|
|
||
| namespace bdd_collab_bhv { | ||
|
|
||
| using TopicConfig = std::map<std::string, std::string>; | ||
|
|
||
| inline TopicConfig load_topics(const std::string &file_path) | ||
| { | ||
| try { | ||
| YAML::Node root = YAML::LoadFile(file_path); | ||
|
|
||
| TopicConfig topics; | ||
| topics["located_at_pick"] = root["located_at_pick"].as<std::string>(); | ||
| topics["is_held"] = root["is_held"].as<std::string>(); | ||
| topics["located_at_place"] = root["located_at_place"].as<std::string>(); | ||
|
|
||
| if ( | ||
| topics["located_at_pick"].empty() || topics["is_held"].empty() | ||
| || topics["located_at_place"].empty() | ||
| ) { | ||
| throw std::runtime_error( | ||
| "YAML must contain non-empty values for 'located_at_pick', 'is_held', and " | ||
| "'located_at_place'" | ||
| ); | ||
| } | ||
|
|
||
| return topics; | ||
| } catch (const YAML::Exception &e) { | ||
| throw std::runtime_error(std::string("Failed to parse YAML file: ") + e.what()); | ||
| } | ||
| } | ||
|
|
||
| } // namespace bdd_collab_bhv | ||
|
|
||
| #endif // BDD_COLLAB_BHV__UTILS_HPP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
All the mockup-specific implementation need to be moved to https://github.com/secorolab/bdd_collab_bhv_cpp/blob/-/src/fsm_behaviours.cpp. In the loop we will call mockup/mujoco/real robot behaviours depending on the config.