Comments (5)
I'm building on the sm_three_some reference library package. I'm trying to add a client and client behavior to call the fibonacci ros2 action. They seem to work as the action is called and the response is received, but I need to activate a transition to the next state based on the success/failure of the ros2 action. I'm using the predefined EvActionSucceeded event but the transition is not triggered even though the action is succesful. I'm not using any other packages currently as I'm still just exploring the package.
from smacc2.
Hi Ahmad, can you give some context with regards to your application? What other packages you're interacting with if any (Nav2 MoveIt etc), style of robot (arms, no arms), what you want the robot to do (generally)?
I get that you're using this message... https://docs.ros2.org/foxy/api/test_msgs/action/Fibonacci.html
Thank you,
from smacc2.
Hi Ahmad,
We typically usually use the event EvCbSuccess for our examples. Both EvCbSuccess and EvActionSucceeded happen when we receive the result of the action client, and then we post one or the other.
Which gives us a hypothesis of where your problem might be occuring... smacc_action_client.hpp line 293
Would it be possible to share your application code with us? Possibly through a fork? or privately?
That way we could see what you're doing.
But if not, a first step would be to try using EvCbSuccess for the client behavior.
Thank you,
from smacc2.
Hi Brett,
Thank you for your response. I thought that the callback function was not being triggered so your hypothesis is similar to mine. I will try the EvCbSuccess and get back to you.
from smacc2.
Hi,
Turns out I mistakenly used the class SmaccClientBehavior
instead of SmaccAsyncClientBehavior
. The class change made it it work with EvCbSuccess.
from smacc2.
Related Issues (20)
- warning format occorred. HOT 2
- Look at getting Nvidia GPU to run docker image
- Investigate running UE5 with AMD and Fedora
- Set up ROS2 on Fedora
- feature/sm_dancebot_ue ./run_docker_container_editor.sh doesnt work
- feature/sm_dancebot_ue ./run_editor_smacc.sh-readme
- Update from 0.4.0 to 2.3.18 on 22.04 Humble not transitioning to next inner state HOT 19
- Confusion about rationale behind orthogonal implementation
- Migrate to modern Gazebo HOT 1
- Nav2z client's waypoint Navigator sends goals in odom frame. HOT 2
- Adding manually compiled SMACC2 packages files to /opt/foxy folder HOT 2
- Fastbin Misalignment - Ubuntu 22.04 - Ros Humble HOT 1
- Error!! when build package HOT 4
- error during installation SMACC2 for rolling HOT 2
- SmaccAsyncClientBehavior onExit() freezes when cancelGoal() is called on the attached action client HOT 9
- [Question] Is there a way to access the event from a state that caused the transition to the current state? HOT 2
- Need http client behaviors moved to the Client Behavior Library
- Unit and Integration Testing in SMACC2
- How to Configure Client Behaviors to Run Sequentially? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smacc2.