Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensor visualisation doesn't work with publishing disabled #462

Closed
Antoni-Robotec opened this issue Aug 21, 2023 · 2 comments · Fixed by #724
Closed

Sensor visualisation doesn't work with publishing disabled #462

Antoni-Robotec opened this issue Aug 21, 2023 · 2 comments · Fixed by #724
Labels
good-first-issue Issue ready for a new contributor according to the help wanted guidelines. kind/bug Categorizes issue or PR as related to a bug. priority/minor Lowest priority. Work that may be scheduled sig/simulation Categorizes an issue or PR as relevant to SIG Simulation

Comments

@Antoni-Robotec
Copy link
Contributor

Currently, disabling publishing completely disables data acquisition in the default implementations in ROS2SensorComponent. However, some sensors need this data to draw their visualisations (eg. lidar). This causes the sensors to draw them improperly, or not at all.
I suggest splitting FrequencyTick into 2 separate methods, "acquire data" and "publish". AcquireData would be called either every frame, in the case visualisation in enabled, or every time we need to publish, in the case it's not.

@Antoni-Robotec Antoni-Robotec added kind/bug Categorizes issue or PR as related to a bug. good-first-issue Issue ready for a new contributor according to the help wanted guidelines. priority/minor Lowest priority. Work that may be scheduled labels Aug 21, 2023
@Antoni-Robotec
Copy link
Contributor Author

Disabling data acquisition alongside publishing also means Script Canvas applications need ROS publishing enabled to work.

@byrcolin byrcolin added the sig/simulation Categorizes an issue or PR as relevant to SIG Simulation label Aug 24, 2023
@Antoni-Robotec
Copy link
Contributor Author

Antoni-Robotec commented Sep 26, 2023

How sensors work has significantly changed with #482, so some of the comment above is probably no longer relevant, but the issue seems to persist (I retested it with the lidar component).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good-first-issue Issue ready for a new contributor according to the help wanted guidelines. kind/bug Categorizes issue or PR as related to a bug. priority/minor Lowest priority. Work that may be scheduled sig/simulation Categorizes an issue or PR as relevant to SIG Simulation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants