Code Monkey home page Code Monkey logo

Comments (6)

MatthijsBurgh avatar MatthijsBurgh commented on June 26, 2024 1

Also, could you update the documentation of the TFClient to show how to cancel a specific goal? I've been using this.TfClient.currentGoal.cancel(); to cancel a specific goal or this.TfClient.actionClient.cancel(); to cancel all goals.

Could you create a separate issue for this?

from roslibjs.

MatthijsBurgh avatar MatthijsBurgh commented on June 26, 2024 1

By changing the goal_id to be static. The actionlib becomes useless for normal action interfaces. So that is the difficulty of this. Which is why a major refactor would be required.
Also only one client should own a goal_id. So by using a static one. The whole canceling become very complex.

from roslibjs.

MatthijsBurgh avatar MatthijsBurgh commented on June 26, 2024

I don't think this is possible. This would require a major refactor of the code. I don't have the resources to do that. So you would need to develop it mostly yourself. But when working correctly and not breaking current behaviour. I am happy to integrate it.

from roslibjs.

ufrhaidar avatar ufrhaidar commented on June 26, 2024

I'm still new to javascript. Have tried to change the goal_id in roslibjs/src/actionlib/Goal.js and making it static then following the build instruction. That didn't work as I might be somehow importing the wrong module. Any advise or comments are appreciated. If I get this simple change to work, I can get the TFClient to have an option of using a static goal_id.

from roslibjs.

ufrhaidar avatar ufrhaidar commented on June 26, 2024

yes I understand that. Making it static would only be a first step for me to test that the concept works. Later a different goal object can be created and used only with TFClient or StaticTFClient.

The solution would also require a custom or modified tf2_web_republisher. I already have the republisher made, and I'll keep working on the static goal_id when I have time. I'm just having trouble importing the newly built roslibjs.

Once I get both sides (tf2_web_republisher and TFClient) to communicate, I can clean the code and make it robust.

from roslibjs.

MatthijsBurgh avatar MatthijsBurgh commented on June 26, 2024

As long as you only changed code inside the functions, you should still be able to compile the library. Once you start adding classes. I think these should be in their own file. (Not 100% sure). And don't forget to extend the index files in that case.

from roslibjs.

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.