-
Notifications
You must be signed in to change notification settings - Fork 11
Share lib between ros1 and ros2 turtlesim #502
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
Conversation
supplementary/alica_ros1/alica_ros_turtlesim/etc/behaviours/GoTo.beh
Outdated
Show resolved
Hide resolved
supplementary/alica_ros2/alica_ros2_turtlesim/etc/behaviours/Teleport.beh
Show resolved
Hide resolved
supplementary/alica_ros_turtlesim/libalica-turtlesim/src/SpawnTurtle.cpp
Show resolved
Hide resolved
| @@ -0,0 +1,43 @@ | |||
| #include "WaitForTrigger.h" | |||
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.
How is this different than WaitForMsg?
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.
WaitForTrigger waits for an empty msg and then succeeds, WaitForMsg waits for a String msg, stores it on the blackboard and then succeeds. I removed it from the lib so we only have it in the ros1 / ros2 folders with their ros specific implementations
supplementary/alica_ros_turtlesim/libalica-turtlesim/src/WaitForMsg.cpp
Outdated
Show resolved
Hide resolved
…e interface base class
supplementary/alica_ros_turtlesim/alica_turtlesim/CMakeLists.txt
Outdated
Show resolved
Hide resolved
supplementary/alica_ros_turtlesim/alica_turtlesim/include/alica_turtlesim/turtle_interfaces.hpp
Outdated
Show resolved
Hide resolved
supplementary/alica_ros_turtlesim/libalica-turtlesim/include/GoToCalculatedResult.h
Outdated
Show resolved
Hide resolved
supplementary/alica_ros_turtlesim/libalica-turtlesim/src/SpawnTurtle.cpp
Show resolved
Hide resolved
| setSuccess(); | ||
| } else { | ||
| Logging::logWarn("SpawnTurtle") << "Failed to spawn " << name << ". Succeeding anyway"; | ||
| setSuccess(); |
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.
why do we set success here?
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.
Usually when spawning a turtle fails the turtle is already spawned
Share PML files and implementation for plans between ros1 and ros2 turtlesim. This PR only includes changes for ros1.
ros2 PR: #505