Skip to content

Commit

Permalink
new version 2.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Oct 3, 2024
1 parent e03cc17 commit 9a06daa
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 11 deletions.
5 changes: 3 additions & 2 deletions yasmin/include/yasmin/blackboard/blackboard.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
#ifndef YASMIN_BLACKBOARD_HPP
#define YASMIN_BLACKBOARD_HPP

#include <exception>
#include <map>
#include <mutex>
#include <string>
#include <exception>

#include "yasmin/blackboard/blackboard_value.hpp"
#include "yasmin/blackboard/blackboard_value_interface.hpp"
Expand All @@ -43,7 +43,8 @@ class Blackboard {
std::lock_guard<std::recursive_mutex> lk(this->mutex);

if (!this->contains(name)) {
throw std::runtime_error("Element " + name + " does not exist in the blackboard");
throw std::runtime_error("Element " + name +
" does not exist in the blackboard");
}

BlackboardValue<T> *b_value = (BlackboardValue<T> *)this->values.at(name);
Expand Down
2 changes: 1 addition & 1 deletion yasmin/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>yasmin</name>
<version>2.3.1</version>
<version>2.4.2</version>
<description>YASMIN (Yet Another State MachINe) main package</description>
<maintainer email="[email protected]">Miguel Ángel González Santamarta</maintainer>
<license>GPL-3</license>
Expand Down
2 changes: 1 addition & 1 deletion yasmin/src/yasmin/state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#include <algorithm>
#include <exception>
#include <string>
#include <vector>
#include <exception>

#include "yasmin/state.hpp"

Expand Down
7 changes: 4 additions & 3 deletions yasmin/src/yasmin/state_machine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#include <algorithm>
#include <exception>
#include <map>
#include <memory>
#include <mutex>
#include <exception>
#include <string>
#include <vector>

Expand Down Expand Up @@ -101,8 +101,9 @@ StateMachine::execute(std::shared_ptr<blackboard::Blackboard> blackboard) {
// check outcome belongs to state
if (std::find(state->get_outcomes().begin(), state->get_outcomes().end(),
outcome) == this->outcomes.end()) {
throw std::logic_error("Outcome (" + outcome + ") is not register in state " +
this->current_state);
throw std::logic_error("Outcome (" + outcome +
") is not register in state " +
this->current_state);
}

// translate outcome using transitions
Expand Down
2 changes: 1 addition & 1 deletion yasmin_demos/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>yasmin_demos</name>
<version>2.3.1</version>
<version>2.4.2</version>
<description>Demos of YASMIN (Yet Another State MachINe)</description>
<maintainer email="[email protected]">Miguel Ángel González Santamarta</maintainer>
<license>GPL-3</license>
Expand Down
2 changes: 1 addition & 1 deletion yasmin_msgs/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>yasmin_msgs</name>
<version>2.3.1</version>
<version>2.4.2</version>
<description>Msgs of (Yet Another State MachINe)</description>
<maintainer email="[email protected]">Miguel Ángel González Santamarta</maintainer>
<license>GPL-3</license>
Expand Down
2 changes: 1 addition & 1 deletion yasmin_ros/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>yasmin_ros</name>
<version>2.3.1</version>
<version>2.4.2</version>
<description>YASMIN (Yet Another State MachINe) for ROS 2</description>
<maintainer email="[email protected]">Miguel Ángel González Santamarta</maintainer>
<license>GPL-3</license>
Expand Down
2 changes: 1 addition & 1 deletion yasmin_viewer/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>yasmin_viewer</name>
<version>2.3.1</version>
<version>2.4.2</version>
<description>TODO: Package description</description>
<maintainer email="[email protected]">miguel</maintainer>
<license>TODO: License declaration</license>
Expand Down

0 comments on commit 9a06daa

Please sign in to comment.