ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

[vn200.launch] is neither a launch file in package

asked 2016-09-06 03:49:00 -0600

sn.badnawa gravatar image

updated 2016-09-08 04:16:02 -0600

gvdhoorn gravatar image

Hi All,

I got vectornav vn200, and I have followed exactly this tutorial : https://github.com/dawonn/vectornav When I write "roslaunch vectornav vn200.launch", I get an error:

[vn200.launch] is neither a launch file in package [vectornav] nor is [vectornav] a launch file name
The traceback for the exception was written to the log file

I don't really know why I get such an error ( I am totally beginner with Linux, ROS, and VectorNav ^^ ).

But, when I go to the following directory ~/catkin_ws/src/vectornav/launch and I write the comman again roslaunch vn200.launch I get the following

... logging to /home/quuser/.ros/log/3dbda9a8-740b-11e6-9178-6c88140d9b00/roslaunch-quuser-5083.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://quuser:35500/

SUMMARY
========

PARAMETERS
 * /rosdistro: indigo
 * /rosversion: 1.11.20
 * /vectornav/async_output_rate: 100
 * /vectornav/async_output_type: 0
 * /vectornav/binary_data_output_port: 2
 * /vectornav/binary_gps_data_output_rate: 4
 * /vectornav/binary_imu_data_output_rate: 100
 * /vectornav/binary_ins_data_output_rate: 20
 * /vectornav/gps/frame_id: LLA
 * /vectornav/imu/frame_id: LLA
 * /vectornav/serial_baud: 115200
 * /vectornav/serial_port: /dev/ttyTHs0

NODES
  /
    vectornav (vectornav/vn200_node)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found


   ERROR: cannot launch node of type [vectornav/vn200_node]: vectornav
    ROS path [0]=/opt/ros/indigo/share/ros
    ROS path [1]=/opt/ros/indigo/share
    ROS path [2]=/opt/ros/indigo/stacks**
No processes to monitor
shutting down processing monitor...
... shutting down processing monitor complete

As you see, I got an error at last couple of lines. Could you please let me know how i can overcome this error.

Thanks,


Edit: Launch file content:

<launch>

    <node pkg="vectornav" type="vn200_node" name="vectornav"  output="screen" > 

      <param name="serial_port" type="string" value="/dev/ttyTHS0" />
      <param name="serial_baud" type="int"    value="115200" />

      <param name="binary_data_output_port" type="int"    value="2" />
      <param name="binary_gps_data_output_rate" type="int"    value="4" />
      <param name="binary_ins_data_output_rate" type="int"    value="20" />
      <param name="binary_imu_data_output_rate" type="int"    value="100" />

      <!-- Type: 0 None (Polling method), 19 IMU, 20 GPS, 22 INS -->
      <param name="async_output_type" type="int"    value="0" />
      <param name="async_output_rate" type="int"    value="100" />

      <param name="imu/frame_id" type="string" value="LLA" />
      <param name="gps/frame_id" type="string" value="LLA" />
    </node> 

</launch>
edit retag flag offensive close merge delete

Comments

pls put your launch file content here.

Shay gravatar image Shay  ( 2016-09-07 00:27:43 -0600 )edit

I have posted it below.

Thanks, Salman

sn.badnawa gravatar image sn.badnawa  ( 2016-09-07 06:02:40 -0600 )edit

Any error when you compiled? If the compilation is successful, you should be able to do "roscd vectornav" without any error.

DavidN gravatar image DavidN  ( 2016-09-08 23:07:41 -0600 )edit

I get the following error when doing "roscd vectornav"

roscd: No such package/stack 'vectornav'
sn.badnawa gravatar image sn.badnawa  ( 2016-09-09 03:28:27 -0600 )edit

hello ,did you solve this problem ?

wathab gravatar image wathab  ( 2020-08-01 02:04:59 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2016-09-08 01:00:24 -0600

Shay gravatar image

Go to directory YOUR_CATKIN_WORKSPACE/devel/lib, and see if there is a folder vectornav. If so, see if there is a executable vn200_node in vectornav.

And also, you should setup the workspace environment, source YOUR_CATKIN_WORKSPACE/devel/setup.bash from your terminal.

edit flag offensive delete link more

Comments

Hi Shay, Yes there is an executable vn200_node in vectornav. Apparently I had to source the setup.bash : ) you are correct.

sn.badnawa gravatar image sn.badnawa  ( 2016-09-09 03:21:18 -0600 )edit
0

answered 2016-09-09 03:33:24 -0600

sn.badnawa gravatar image

my previous problem has been solved, however, when i compile it by writing roslaunch vectornav vn200.launch, it roslaunch vectornav vn200.launchi, it nitializes vn200, however, I get the following error after that:

[FATAL] [1473409755.447612116]: Could not conenct to vn200 on port:/dev/ttyTHS0 @ Baud:115200; Error 5 
Did you add your user to the 'dialout' group in /etc/group?
[vectornav-1] process has died [pid 2910, exit code 1, cmd /home/quuser/catkin_ws/devel/lib/vectornav/vn200_node __name:=vectornav __log:=/home/quuser/.ros/log/7d12eed0-7666-11e6-ab35-6c88140d9b00/vectornav-1.log].
log file: /home/quuser/.ros/log/7d12eed0-7666-11e6-ab35-6c88140d9b00/vectornav-1*.log
edit flag offensive delete link more

Comments

1

Please ask a new question or edit your question, don't put question here.

And do ls -l /dev | grep ttyTHS from terminal, and show me the result.

Shay gravatar image Shay  ( 2016-09-09 05:42:45 -0600 )edit

Sure, thank you for letting me know. I will ask a new question

sn.badnawa gravatar image sn.badnawa  ( 2016-09-09 06:08:01 -0600 )edit

You may need to set permission for /dev/ttyTHS0 with chmod

DavidN gravatar image DavidN  ( 2016-09-10 02:13:38 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-09-06 03:49:00 -0600

Seen: 1,280 times

Last updated: Sep 09 '16