Giter Site home page Giter Site logo

ros-visualization / rviz_animated_view_controller Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aleeper/rviz_animated_view_controller

16.0 5.0 20.0 3.93 MB

Rviz view controller plugin with message API and smooth transitions.

C++ 96.27% CMake 3.73%

rviz_animated_view_controller's People

Contributors

aleeper avatar flynneva avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rviz_animated_view_controller's Issues

add a README

missing the typical README (supported platforms, quick start, docs, etc.)

Add option to pause the current animation

Currently one can only quit an animation by moving the camera with the mouse or request a trajectory with a waiting animation included.
An option to force the current animation to stop for a specified duration is missing.
It allows to render a smooth video when rendering frame by frame using a large window size or frame rate (on a slow computer).

[Bug] values from CameraPlacement become corrupted

I have a python script which publishes CameraPlacement messages to rviz/camera_placement. The script is based off of CameraTest in the view_controller_messages repo.
The script switches through some RViz views via the rviz_animated_view_controller plugin.
It works fine, mostly. Every so often, I would say 1 out of 5, an issue occurs where the values used by the plugin are some other values which I did not publish. These values are often some huge number, like 1.1e+30 or similar. Hence, the referral to these values as being "corrupted".

A very relevant detail; this issue happens after the first CameraPlacement message is published. Once it has occurred, it never corrects itself for any of the subsequent messages published. Also, if it works the first message, the bug does not occur for subsequent messages. After stopping RViz and restarting it again, the bug may or may not show itself (this is in the roughly 1 in 5 occurrence I mentioned).

Please see attached screenshots which show the message I have published and what the plugin then uses. During correct functioning, these values would be the same. During the bug, the values are different (or "corrupted").

Thanks in advance for taking the time to have a look at this.

published_message
rviz_animated_view_controller_plugin

Add properties showing view window size

It's helpful to know the height and width of the current view when rendering images during an animation.
Height and width can be displayed as additional properties in the view controller panel.
This would be an easy way to set the height and width precisely by adjusting the window size.

Release for Kinetic

Hi, I am wondering if you are considering releasing this package for ROS Kinetic. Thanks.

Inquiry for seperate Spacenav Plugin

Note quite an issue, but I'd like to inquire about the structure of a view_controller in the rviz library.

My goal would be to have a node that subscribes to rosjoy message published by a spacenav_node and increment the camera's point and rotation accordingly to the input, thus both a ros node and an rviz frame_position_tracking_view_controller. I've seen some other project do quite similar things, i.e this rviz_animated_view_controller. I'm trying to make a subclass of say the fps_view_controller that is also a node that subscribes to spacenav_node, but I can filter out the minimal relationship rviz_animated_view_controller has with rviz. I know how the node part can be launched and initialized, and subscribe, but I'm unsure how view_controller attaches or hooks into to a running instance of rviz,

pinging some old contributors:
@aleeper @otim @hershwg @dgossow
Here's hoping you find this well

Control camera movement

Hello, I've tried using this package for a little bit now and it's pretty cool. I'm using it to stream my rviz window view to a web server, but so far I've only managed to get the messages to publish using the SquareTest or CameraTest scripts from view_controller_msgs package. I'd ideally want to have a normal XYOrbit camera view following my tf and stream that to the web server but I'm not sure how to achieve that instead of using those scripts. Perhaps you could give me some pointers? Also, I'd want to explore the possibility of still having a way of interacting with the rviz view from the web server directly and basically be able to change my viewport from the webapp hosted on the server by sending commands to rviz, I'm not sure if that would be possible and I'm guessing maybe I'd have to capture touch/mouse inputs and then somehow extend the base rviz functionality to execute those on the pc hosting the webapp.

[feature request] publish mouse event

I want to use mouse event information outside of rviz.

Is is acceptable to add publishing mouse position in rviz_animated_view_controller? Or should I implement it in my own package?

Refactoring

By now at least a basic form refactoring and clean up seems necessary.
The indentation switches from method to method + there are some unused method or methods formerly used for testing within the view controller class.

I tried to change as little as possible of the original code when adding the functionality necessary for the rviz_cinematographer to keep the PRs concise.

I can help with the basic refactoring if you want to.

switch default branch to main

right now the default branch is hydro-devel which is no longer an actively supported ROS distro. we should update this probably to default to noetic-devel

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.