-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #688 from umrover/camera-id
Allow camera streaming to select a device from a physical port via udev
- Loading branch information
Showing
7 changed files
with
150 additions
and
86 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
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 |
---|---|---|
|
@@ -22,4 +22,4 @@ | |
|
||
- name: Install Moteus GUI | ||
pip: | ||
name: moteus_gui | ||
name: moteus-gui |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,73 @@ | ||
<launch> | ||
<rosparam command="load" file="$(find mrover)/config/esw.yaml" /> | ||
<rosparam command="load" file="$(find mrover)/config/esw.yaml"/> | ||
|
||
<!-- Bridges between ROS and SocketCAN --> | ||
<!-- <node name="can_driver_0" pkg="mrover" type="can_driver" | ||
respawn="true" respawn_delay="2" | ||
output="screen"> | ||
<param name="interface" value="can0" /> | ||
</node> --> | ||
<node name="can_driver_1" pkg="mrover" type="can_driver" | ||
respawn="true" respawn_delay="2" | ||
output="screen"> | ||
<param name="interface" value="can1" /> | ||
</node> | ||
<node name="can_driver_2" pkg="mrover" type="can_driver" | ||
respawn="true" respawn_delay="2" | ||
output="screen"> | ||
<param name="interface" value="can2" /> | ||
</node> | ||
<node name="can_driver_3" pkg="mrover" type="can_driver" | ||
respawn="true" respawn_delay="2" | ||
output="screen"> | ||
<param name="interface" value="can3" /> | ||
</node> | ||
<!-- Bridges between ROS and SocketCAN --> | ||
<!-- <node name="can_driver_0" pkg="mrover" type="can_driver" | ||
respawn="true" respawn_delay="2" | ||
output="screen"> | ||
<param name="interface" value="can0" /> | ||
</node> --> | ||
<node name="can_driver_1" pkg="mrover" type="can_driver" | ||
respawn="true" respawn_delay="2" | ||
output="screen"> | ||
<param name="interface" value="can1"/> | ||
</node> | ||
<node name="can_driver_2" pkg="mrover" type="can_driver" | ||
respawn="true" respawn_delay="2" | ||
output="screen"> | ||
<param name="interface" value="can2"/> | ||
</node> | ||
<node name="can_driver_3" pkg="mrover" type="can_driver" | ||
respawn="true" respawn_delay="2" | ||
output="screen"> | ||
<param name="interface" value="can3"/> | ||
</node> | ||
|
||
<node pkg="mrover" type="gst_websocket_streamer" name="gst_websocket_streamer_0" | ||
output="screen"> | ||
<param name="device" value="/dev/video0" /> | ||
<param name="port" value="8081" /> | ||
<param name="width" value="1280" /> | ||
<param name="height" value="720" /> | ||
</node> | ||
<node pkg="nodelet" type="nodelet" name="streamer_nodelet_mobility" | ||
args="load mrover/GstWebsocketStreamerNodelet perception_nodelet_manager" | ||
output="screen"> | ||
<param name="dev_node" value="/dev/video0"/> | ||
<param name="port" value="8081"/> | ||
<param name="width" value="1280"/> | ||
<param name="height" value="720"/> | ||
</node> | ||
|
||
<node pkg="mrover" type="gst_websocket_streamer" name="gst_websocket_streamer_1" | ||
output="screen"> | ||
<param name="device" value="/dev/video2" /> | ||
<param name="port" value="8082" /> | ||
<param name="width" value="1280" /> | ||
<param name="height" value="720" /> | ||
</node> | ||
<node pkg="nodelet" type="nodelet" name="streamer_nodelet_static" | ||
args="load mrover/GstWebsocketStreamerNodelet perception_nodelet_manager" | ||
output="screen"> | ||
<param name="dev_node" value="/dev/video2"/> | ||
<param name="port" value="8082"/> | ||
<param name="width" value="1280"/> | ||
<param name="height" value="720"/> | ||
</node> | ||
|
||
<node pkg="mrover" type="gst_websocket_streamer" name="gst_websocket_streamer_2" | ||
output="screen"> | ||
<param name="device" value="/dev/video4" /> | ||
<param name="port" value="8083" /> | ||
<param name="width" value="1280" /> | ||
<param name="height" value="720" /> | ||
</node> | ||
<node pkg="nodelet" type="nodelet" name="streamer_nodelet_finger" | ||
args="load mrover/GstWebsocketStreamerNodelet perception_nodelet_manager" | ||
output="screen"> | ||
<param name="dev_node" value="/dev/video4"/> | ||
<param name="port" value="8083"/> | ||
<param name="width" value="1280"/> | ||
<param name="height" value="720"/> | ||
</node> | ||
|
||
<node pkg="mrover" type="gst_websocket_streamer" name="gst_websocket_streamer_zed" | ||
output="screen"> | ||
<param name="image_topic" value="/camera/left/image" /> | ||
<param name="port" value="8084" /> | ||
<param name="width" value="1280" /> | ||
<param name="height" value="720" /> | ||
</node> | ||
|
||
<!-- <node pkg="mrover" type="gst_websocket_streamer" name="gst_websocket_streamer_3" | ||
output="screen"> | ||
<param name="device" value="/dev/video6" /> | ||
<param name="port" value="8084" /> | ||
<param name="width" value="640" /> | ||
<param name="height" value="480" /> | ||
</node> --> | ||
<node pkg="nodelet" type="nodelet" name="streamer_nodelet_zed" | ||
args="load mrover/GstWebsocketStreamerNodelet perception_nodelet_manager" | ||
output="screen"> | ||
<param name="image_topic" value="/camera/left/image"/> | ||
<param name="port" value="8084"/> | ||
<param name="width" value="1280"/> | ||
<param name="height" value="720"/> | ||
</node> | ||
|
||
<node name="drive_bridge" pkg="mrover" type="drive_bridge" output="screen" /> | ||
<node name="drive_bridge" pkg="mrover" type="drive_bridge" output="screen"/> | ||
|
||
<!-- Interprets status from navigation and teleoperation to deliver the correct LED mode to | ||
the bridge --> | ||
<node name="led" pkg="mrover" type="led" output="screen" /> | ||
<!-- This is the STM bridge, not working right now for unknown reasons --> | ||
<!-- <node name="led_hw_bridge" pkg="mrover" type="led_hw_bridge" /> --> | ||
<node name="arduino_led_hw_bridge" pkg="mrover" type="arduino_led_hw_bridge.py" | ||
output="screen" /> | ||
<!-- Interprets status from navigation and teleoperation to deliver the correct LED mode to | ||
the bridge --> | ||
<node name="led" pkg="mrover" type="led" output="screen"/> | ||
<!-- This is the STM bridge, not working right now for unknown reasons --> | ||
<!-- <node name="led_hw_bridge" pkg="mrover" type="led_hw_bridge" /> --> | ||
<node name="arduino_led_hw_bridge" pkg="mrover" type="arduino_led_hw_bridge.py" | ||
output="screen"/> | ||
|
||
<node name="mast_gimbal_bridge" pkg="mrover" type="mast_gimbal_bridge" output="screen" /> | ||
<node name="mast_gimbal_bridge" pkg="mrover" type="mast_gimbal_bridge" output="screen"/> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
#pragma once | ||
|
||
#include <thread> | ||
#include <atomic> | ||
#include <format> | ||
#include <thread> | ||
|
||
#include <nodelet/loader.h> | ||
#include <sensor_msgs/Image.h> | ||
#include <sensor_msgs/image_encodings.h> | ||
#include <nodelet/nodelet.h> | ||
#include <ros/this_node.h> | ||
#include <ros/init.h> | ||
#include <ros/names.h> | ||
#include <ros/node_handle.h> | ||
#include <ros/this_node.h> | ||
#include <sensor_msgs/Image.h> | ||
#include <sensor_msgs/image_encodings.h> | ||
|
||
#include <gst/app/gstappsink.h> | ||
#include <gst/app/gstappsrc.h> | ||
#include <gst/gst.h> | ||
|
||
#include <libusb.h> | ||
|
||
#include <libudev.h> | ||
|
||
#include <opencv2/imgproc.hpp> | ||
|
||
#include <websocket_server.hpp> |