Code Monkey home page Code Monkey logo

Comments (3)

metalsalmon avatar metalsalmon commented on August 18, 2024

Is it possible to start vins from roslaunch?
I start it like this but i can see only tracking images, no other topics are published.

<launch> <include file="$(find vins)/launch/vins_rviz.launch"/> <node pkg="vins" type="vins_node" name="vins_node" args="~/catkin_ws/src/VINS-Fusion/config/euroc/euroc_stereo_imu_config.yaml" output="screen"/></launch>

this command works but i need to start it from roslaunch
rosrun vins vins_node ~/catkin_ws/src/VINS-Fusion/config/euroc/euroc_stereo_imu_config.yaml

from vins-fusion.

Zhan-Jia-Rong avatar Zhan-Jia-Rong commented on August 18, 2024

I have this problem too!
I can't get rviz's visualization,when i use roslaunch to run "vins_node".
But it is normal to execute one by one.
Here is my roslaunch file:

<?xml version="1.0"?>
<launch>
    <include file="$(find vins)/launch/vins_rviz.launch">
	</include>
    <arg name="config_path" default = "/home/ccone/catkin_ws/src/VINS-Fusion/config/realsense_d455/realsense_mono_imu_config.yaml" />
    <node name="vins_fusion" pkg="vins" type="vins_node" output="screen">
        <param name="config_file" value="$(arg config_path)" />
    </node>
    <node pkg="rosbag" type="play" name="player" args="/home/jiarong/catkin_ws/vins+uwb/Date_4_21/cal3.bag"/>
</launch>

from vins-fusion.

nlaby avatar nlaby commented on August 18, 2024

This launch file works for me ;)

<launch>

  <arg  name="bag_file" default="/home/dream/DATASETS/R3live/hkust_campus_03.bag"/>

  <arg name="publish_clock" default="--clock"/>

  <!-- Republish compressed image to raw image -->  
  <node pkg="image_transport" required="true" type="republish" name="compressed_fc" args="compressed in:=/camera/image_color  raw out:=/camera/image_color" />

  <!-- Run vins_node -->
  <node name="vins_estimator" required="true" pkg="vins" type="vins_node" output="screen" args="$(find vins)/../config/R3live/R3live_config.yaml"/>

  <!-- Run loop_fusion_node -->
  <node name="loop_fusion" pkg="loop_fusion" type="loop_fusion_node" output="screen" args="$(find vins)/../config/R3live/R3live_config.yaml"/>

    <!-- Launch RViz -->
  <node name="rvizvisualisation" respawn="true" pkg="rviz" type="rviz" output="log" args="-d $(find vins)/../config/vins_rviz_config.rviz" />


  <!-- Play rosbag -->

  <node required="false" pkg="rosbag" type="play" name="rosbag_player" args="$(arg publish_clock) $(arg bag_file) -r 1.0 " launch-prefix="bash -c 'sleep 1; $0 $@' "/>
  

</launch>

from vins-fusion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.