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

Debug Tool: Simulate Camera Vision #10

Open
acbuynak opened this issue Jul 19, 2022 · 0 comments
Open

Debug Tool: Simulate Camera Vision #10

acbuynak opened this issue Jul 19, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@acbuynak
Copy link
Member

Currently unable to simulate the camera vision effectively. A partial implementation exists using a static image publisher in the maze_vision/launch package, but does not work due to a hard coded requirement for synchronous color and depth data for the vision processor.

Ideas

  • ROS Bag recording/playback
  • semi-static publisher
  • synchronous static publishers

Relevant Code

Source of requirement for synchronous color & depth data

sub_color = message_filters.Subscriber(self, Image, "/rs1/color/image_raw")
sub_depth = message_filters.Subscriber(self, Image, "/rs1/depth/image_rect_raw")
self.ts = message_filters.TimeSynchronizer([sub_color, sub_depth], queue_size=10)
self.ts.registerCallback(self._synchronous_callback)

Broken static vision publisher

<group if="$(var sim_vision)" >
<!-- Static Image Publisher to stand in for real camera --><!-- HAS KNOWN ISSUES. -->
<node pkg="image_publisher" exec="image_publisher_node" name="color" namespace="rs1"
args="$(find-pkg-share maze_vision)/sim/aruco/d1_color.jpg" >
<param name="flip_horizontal" value="false" />
<param name="flip_vertical" value="false" />
<param name="frame_id" value="camera_link" />
<param name="publish_rate" value="15.0" />
</node>
</group>

@acbuynak acbuynak added the bug Something isn't working label Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant