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

Maytheewat's profile - activity

2017-04-26 06:10:24 -0500 marked best answer viso2 couldn't find mono_odometer node

I download viso2 and build using rosmake. There was no error. However when I run it with following launch file.

<!-- example launch file for mono_odometer -->
<launch>
  <arg name="camera"/> <!-- camera must be set at launch -->
  <node name="image_proc" pkg="image_proc" type="image_proc" ns="$(arg camera)"/>
  <node name="mono_odometer" pkg="viso2_ros" type="mono_odometer" output="screen">
    <remap from="image" to="$(arg camera)/image_rect" />
    <param name="camera_height" value="0.5" /> <!-- cam is 0.5m above ground -->
    <param name="camera_pitch" value="0.0" /> <!-- cam is looking straight forward -->
  </node>
</launch>

It gave this error "ERROR: cannot launch node of type [viso2_ros/mono_odometer]: can't locate node [mono_odometer] in package [viso2_ros]"

How could I fix this problem ?

2016-03-31 21:45:20 -0500 received badge  Necromancer (source)
2016-03-31 21:45:20 -0500 received badge  Self-Learner (source)
2016-03-31 21:45:20 -0500 received badge  Teacher (source)
2016-03-28 18:24:49 -0500 commented answer rostopic echo with launch file

So....I guess I didn't really manage to get .txt file directly out from the topic(s)

2016-03-28 18:16:32 -0500 answered a question rostopic echo with launch file

Hey guys,

I am very sorry, I haven't check this for a while. I am no longer using ROS. I believe this was working for me three years ago.

<launch>
  <arg name ="file_name" default="your_bag_file.bag"/>
  <arg name ="dest_path" default="path_to_the_destination"/>
  <arg name ="topic1" default="/topic_name_1"/>
  <arg name ="topic2" default="/topic_name_2"/>
  <arg name ="topic3" default="/topic_name_3"/>
  <arg name ="topic4" default="/topic_name_4"/>
  <node name ="recorder" pkg="rosbag" type="record" output="screen" args="-O $(arg dest_path)/$(arg file_name) $(arg topic1) $(arg topic2) $(arg topic3) $(arg topic4)">
  </node>
</launch>

@Druff @atp @Andrew.A

2015-10-29 10:31:04 -0500 received badge  Nice Question (source)
2015-10-29 10:31:02 -0500 marked best answer rostopic echo with launch file

Hello,

I would like to do something like this

rostopic echo -p /mytopic > outputfile.txt

with the launch file

Hence, I wrote this in the launch file

<node name="output_topic1" pkg="rostopic" type="rostopic" output="screen" args="echo -p /mytopic > outputfile.txt">
</node>

However, it doesn't work and give me an error like this

Usage: rostopic echo [options] /topic

rostopic: error: you may only specify one input topic

[output_topic1-8] process has died [pid 11643, exit code 2, cmd /opt/ros/groovy/lib/rostopic/rostopic echo -p /mytopic > outputfile.txt __name:=output_topic1 __log:=/home/user/.ros/log/edae921e-f970-11e2-be82-14feb5b7467c/output_topic1-8.log].
log file: /home/user/.ros/log/edae921e-f970-11e2-be82-14feb5b7467c/output_topic1-8*.log
2015-08-20 12:58:29 -0500 marked best answer How to play rosbag using launch file ?

I'm trying to play a bagfile using following launch file.

<launch>
  <node pkg="rosbag" type="play" name="rosbag" args="8tags.bag"/>
</launch>

However, it gave me an error like this when I launch it.

[FATAL] [1368634083.754058723]: Error opening file: 8tags.bag
[rosbag-1] process has died [pid 14246, exit code 1, cmd /opt/ros/groovy/lib/rosbag/play $8tags.bag __name:=rosbag __log:=/home/mayara/.ros/log/7e11c8fc-bd77-11e2-ae06-ac72890c90a9/rosbag-1.log].
log file: /home/mayara/.ros/log/7e11c8fc-bd77-11e2-ae06-ac72890c90a9/rosbag-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
done