osrf / rvizweb

RVizWeb: RViz on the browser
285 stars 59 forks source link

2D nav Goal in rvizweb #46

Open SystemDiagnosticss opened 3 years ago

SystemDiagnosticss commented 3 years ago

Is it possible get 2D pose estimate and 2D nav Goal value in rvizweb via onclick js event??

SystemDiagnosticss commented 3 years ago

Hi guys @jubeira @chapulina @mvollrath Can you please give me feedback. Thanks

jubeira commented 3 years ago

Hi @SystemDiagnosticss, I don't think that's a feature in the current codebase. You basically want to raycast a click in the screen, is that right?

SystemDiagnosticss commented 3 years ago

Hi @SystemDiagnosticss, I don't think that's a feature in the current codebase. You basically want to raycast a click in the screen, is that right?

Yes absolutely

jubeira commented 3 years ago

So while it's not implemented, you can try modifying the code if you want to. Here's one pointer that could be useful: https://threejs.org/docs/#api/en/core/Raycaster.

I'd try looking at how to use it in this codebase to start with. Good luck!

SystemDiagnosticss commented 3 years ago

@jubeira thanks for your answer. May you give me some start point (some_file.js) where I can add this possibilities?