Project 6: Missing key in mission_orchestration node

Open Beginner friendly
#236 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
cpp
Domain
robotics

Research direction

Start in the mission_orchestration package at lines 105-110 of mission_orchestrator.cpp and review how the behavior tree blackboard is initialized. Run ros2 launch rj_training_bringup week_6.launch.xml, then execute the mission and verify that the missing-key and action-server errors no longer occur and the simulated bot starts moving.

Written by the indexing model from the issue text.

Description


name: Project 6: mission_orchestration node
about: About missing key in loading behavior tree in mission_orchestration node
title: "Missing key in mission_orchestration node"

Description

When trying to execute the mission in Project 6, there would be an error message saying that the action server wasn't ready. There would also be an error message when launching the project saying that the behavior tree wasn't loaded properly and that there was a missing key of "wait_for_service_timeout".

Fix

In lines 105-110 of mission_orchestrator.cpp from the mission_orchestration package in the STSL repository, I added the following line after googling the error messages shown in the screenshots:

blackboard_->set<std::chrono::milliseconds>("wait_for_service_timeout", std::chrono::milliseconds(5000));

(I arbitrarily chose 5 seconds for the length since I thought it would be more than long enough.)
After adding this line, the button works, and the bot starts moving.

Steps to Reproduce

  1. Run "ros2 launch rj_training_bringup week_6.launch.xml"
  2. Click the "execute mission" button.

Expected behavior

The button is supposed to execute the mission, and the simulated bot is supposed to start moving.

Screenshots

Image

Error message after pressing the button to execute the mission:
Image

Dominant language
C++
Stars
174
Forks
198
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RoboJackets/software-training

All issues in RoboJackets/software-training

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.