mirror of
https://github.com/OSURoboticsClub/Rover_2017_2018.git
synced 2025-11-08 10:11:14 +00:00
Added camera test files for topic transport
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
topics:
|
||||
- name: "/usb_cam/image_raw"
|
||||
compress: true # enable bz2 compression
|
||||
rate: 30.0 # rate limit at 1Hz
|
||||
@@ -0,0 +1,14 @@
|
||||
<launch>
|
||||
<!--
|
||||
This launch file runs a udp_receiver node, which receives topics
|
||||
over the network on port 17001 and publishes them on the local roscore.
|
||||
|
||||
See udp_sender.launch for the sender part.
|
||||
-->
|
||||
|
||||
<node name="udp_receiver" pkg="nimbro_topic_transport" type="udp_receiver" output="screen">
|
||||
<!-- The port to receive packets on -->
|
||||
<param name="port" value="17002" />
|
||||
|
||||
</node>
|
||||
</launch>
|
||||
@@ -0,0 +1,26 @@
|
||||
<launch>
|
||||
<!--
|
||||
This launch file runs a udp_sender node, which sends topics from the local
|
||||
roscore over the network on port 17001.
|
||||
|
||||
By default, this launch file sends topics to your local machine for
|
||||
testing purposes. If you want to send to another machine, use
|
||||
roslaunch nimbro_topic_transport udp_sender.launch target:=other_host
|
||||
where other_host can be a host name or IP address.
|
||||
|
||||
See udp_receiver.launch for the receiving part.
|
||||
-->
|
||||
|
||||
<arg name="target" default="192.168.1.10" />
|
||||
|
||||
<!-- The UDP sender node -->
|
||||
<node name="udp_sender" pkg="nimbro_topic_transport" type="udp_sender" output="screen">
|
||||
|
||||
<!-- The destination host name or IP address -->
|
||||
<param name="destination_addr" value="$(arg target)" />
|
||||
<param name="destination_port" value="17002" />
|
||||
|
||||
<!-- Load the list of topics from a YAML file -->
|
||||
<rosparam command="load" file="$(find nimbro_topic_transport)/launch/camera_topics.yaml" />
|
||||
</node>
|
||||
</launch>
|
||||
@@ -9,15 +9,10 @@
|
||||
</node>
|
||||
|
||||
|
||||
<node name="gimbal" pkg="rover_camera" type="rover_camera" launch-prefix="taskset -c 3" output="screen" >
|
||||
<node name="camera_chassis" pkg="rover_camera" type="rover_camera" launch-prefix="taskset -c 3" output="screen" >
|
||||
<param name="device_path" value="/dev/rover/camera_chassis" />
|
||||
</node>
|
||||
|
||||
|
||||
</group>
|
||||
<!--
|
||||
<node name="image_view" pkg="image_view" type="image_view" launch-prefix="taskset -c 4" output="screen">
|
||||
<remap from="image" to="/cameras/camera_name/image_720p"/>
|
||||
</node>
|
||||
-->
|
||||
</launch>
|
||||
|
||||
Reference in New Issue
Block a user