Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Launching usb_cam on a remote Machine

Hi ROS-Community,

as the title already says I want to Launch the usb_cam Node on a Raspberry Pi from my main Computer. Although there are many Question regarding the usb_cam not working, I can't find one that deals with the <machine> tag. :(

The Launch file works on my main Computer and the Pi locally (so i guess the param are not the problem), but if I use the <machine> tag to start it remotely i get the following error:

ERROR: cannot launch node of type [usb_cam/usb_cam_node.cpp]: usb_cam ROS path [0]=/opt/ros/kinetic/share/ros ROS path [1]=/opt/ros/kinetic/share ROS path [2]=/opt/ros/kinetic/stacks

launch file:

<launch>

<machine name="pi" address="192.168.0.48" env-loader="/opt/ros/kinetic/env.sh" user="me" default="true"/> <node name="usb_cam_2" pkg="usb_cam" type="usb_cam_node.cpp" output="screen"> </node> </launch>

I think the problem lies here: env-loader="/opt/ros/kinetic/env.sh, but as I am kinda new to ROS I don't know what to do about it. :(

Greetings Jamrock

Launching usb_cam on a remote Machine

Hi ROS-Community,

as the title already says I want to Launch the usb_cam Node on a Raspberry Pi from my main Computer. Although there are many Question regarding the usb_cam not working, I can't find one that deals with the <machine> <machine> tag. :(

The Launch file works on my main Computer and the Pi locally (so i guess the param are not the problem), but if I use the <machine> <machine> tag to start it remotely i get the following error:

ERROR: cannot launch node of type [usb_cam/usb_cam_node.cpp]: usb_cam
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/opt/ros/kinetic/share
ROS path [2]=/opt/ros/kinetic/stacks

[2]=/opt/ros/kinetic/stacks

launch file:

<launch>

<machine name="pi" address="192.168.0.48" env-loader="/opt/ros/kinetic/env.sh" user="me" default="true"/> default="true" /> <node name="usb_cam_2" pkg="usb_cam" type="usb_cam_node.cpp" output="screen"> <param name="video_device" value="/dev/video0" /> <param name="image_width" value="1920" /> <param name="image_height" value="1080" /> <param name="pixel_format" value="yuyv" /> <param name="camera_frame_id" value="usb_cam" /> <param name="io_method" value="mmap"/> </node> </launch>

</launch>

I think the problem lies here: env-loader="/opt/ros/kinetic/env.sh, env-loader="/opt/ros/kinetic/env.sh", but as I am kinda new to ROS I don't know what to do about it. :(

Greetings Jamrock