Skip to content

Feat/bdd exec comm#4

Open
bhunecke wants to merge 10 commits into
rollingfrom
feat/bdd-exec-comm
Open

Feat/bdd exec comm#4
bhunecke wants to merge 10 commits into
rollingfrom
feat/bdd-exec-comm

Conversation

@bhunecke
Copy link
Copy Markdown
Member

No description provided.

@bhunecke bhunecke requested a review from minhnh May 13, 2026 13:14
@bhunecke bhunecke self-assigned this May 13, 2026
@bhunecke bhunecke linked an issue May 13, 2026 that may be closed by this pull request
{
std::weak_ptr<GoalHandleBehaviour> mGoalHandlerPtr;
Behaviour::Goal mGoalCopy;
std::shared_ptr<GoalHandleBehaviour> mGoalHandlerPtr;
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.

why is this necessary?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Mainly to have the goal handler not die mid goal execution and get a null ptr. when trying to send success/cancel. We could also do weak ptr but I'm not sure how to handle when the lock fails

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.

Hmm, you mean calling lock() returns a nullptr? How did you test this? I can't seem to reproduce "dying mid goal execution" with the server only setup when switching to weak_ptr.

Comment thread include/bdd_collab_bhv_cpp/utils.hpp Outdated
Comment thread src/collab_pickplace_node.cpp Outdated
Comment thread src/collab_pickplace_node.cpp Outdated
Comment thread src/collab_pickplace_node.cpp Outdated
Comment thread src/collab_pickplace_node.cpp Outdated
Comment thread src/collab_pickplace_node.cpp Outdated
Comment thread src/collab_pickplace_node.cpp Outdated
Comment thread src/collab_pickplace_node.cpp Outdated
activeGoal.reset();
}

if (mCancelRequested.load(std::memory_order_acquire)) {
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.

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.

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.

Handle Communication with BDD Test process

2 participants