forked from uml-robotics/rviz_camera_stream
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#12 now have the librviz node publishing when roslaunched with a came…
…ra info, it is currently all black so try adding a grid next.
- Loading branch information
Showing
4 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<arg name="use_rviz" default="true" /> | ||
|
||
|
||
<group ns="camera1"> | ||
<node pkg="librviz_camera" type="librviz_camera" name="librviz_camera" | ||
output="screen" /> | ||
<node pkg="tf" type="static_transform_publisher" name="camera_broadcaster" | ||
args="0.1 0.1 -0.5 0 0 0 1 map camera1 10" /> | ||
<node name="camera_info" pkg="rostopic" type="rostopic" | ||
args="pub camera_info sensor_msgs/CameraInfo | ||
'{header: {seq: 0, stamp: {secs: 0, nsecs: 0}, frame_id: 'camera1'}, | ||
height: 480, width: 640, distortion_model: 'plumb_bob', | ||
D: [0], | ||
K: [500.0, 0.0, 320, 0.0, 500.0, 240.0, 0.0, 0.0, 1.0], | ||
R: [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], | ||
P: [500.0, 0.0, 320, 0.0, 0.0, 500, 240, 0.0, 0.0, 0.0, 1.0, 0.0], | ||
binning_x: 0, binning_y: 0, | ||
roi: {x_offset: 0, y_offset: 0, height: 480, width: 640, do_rectify: false}}' -r 2" | ||
output="screen"/> | ||
</group> | ||
|
||
<!-- | ||
<group ns="camera2"> | ||
<node pkg="tf" type="static_transform_publisher" name="camera_broadcaster" | ||
args="0.1 -0.1 -2.5 0.01 0 0.02 1 map camera2 10" /> | ||
<node name="camera_info" pkg="rostopic" type="rostopic" | ||
args="pub camera_info sensor_msgs/CameraInfo | ||
'{header: {seq: 0, stamp: {secs: 0, nsecs: 0}, frame_id: 'camera2'}, | ||
height: 720, width: 1280, distortion_model: 'plumb_bob', | ||
D: [0], | ||
K: [300.0, 0.0, 640, 0.0, 300.0, 360.0, 0.0, 0.0, 1.0], | ||
R: [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], | ||
P: [300.0, 0.0, 640, 0.0, 0.0, 300, 360, 0.0, 0.0, 0.0, 1.0, 0.0], | ||
binning_x: 0, binning_y: 0, | ||
roi: {x_offset: 0, y_offset: 0, height: 720, width: 1280, do_rectify: false}}' -r 2" | ||
output="screen"/> | ||
</group> | ||
--> | ||
|
||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters