Git Product home page Git Product logo

Comments (5)

ahmadabouelainein avatar ahmadabouelainein commented on July 30, 2024 1

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.

brettpac avatar brettpac commented on July 30, 2024

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.

brettpac avatar brettpac commented on July 30, 2024

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.

ahmadabouelainein avatar ahmadabouelainein commented on July 30, 2024

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.

ahmadabouelainein avatar ahmadabouelainein commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.