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

Nightstalker's profile - activity

2017-08-02 15:05:44 -0500 received badge  Famous Question (source)
2016-06-27 12:47:19 -0500 received badge  Notable Question (source)
2016-06-11 02:38:01 -0500 commented answer How do I access files in same directory as executable? (Python Catkin)

Took your advice, installed my API scripts in scripts folder and kept the shell files in a data folder. Added both to my CMakeLists.txt.

2016-06-09 08:05:10 -0500 received badge  Self-Learner (source)
2016-06-09 08:05:10 -0500 received badge  Teacher (source)
2016-06-06 14:35:53 -0500 received badge  Popular Question (source)
2016-06-06 13:16:29 -0500 commented answer How do I access files in same directory as executable? (Python Catkin)

This works! Thanks a lot, didn't know this trick till now.

2016-06-05 13:21:05 -0500 asked a question How do I access files in same directory as executable? (Python Catkin)

I have a python catkin package in which I am trying to run some shell files kept in the same src folder as my main executable python file start.py.
However, unless I do rosrun from the src folder, the python code is unable to find the shell files for execution. I keep getting a File Not Found error on my script.
I tried adding these to the include folder and updated my CMakeLists.txt but that didn't work. How do I access these shell files?

2015-05-29 13:52:17 -0500 received badge  Famous Question (source)
2015-03-30 03:32:50 -0500 received badge  Notable Question (source)
2015-03-25 16:47:36 -0500 answered a question How to use laser_scan_matcher with depthimage_to_laserscan and gmapping?

Okay, got it working. There was an issue with the tf tree being published to laser_scan_matcher.
Here's my working launch file for laser_scan_matcher.
Just replace step 4 with roslaunch <this_launch_file>.launch

<launch>

#### publish an example base_link -> laser transform ###########
### this was the error ###
<!--node pkg="tf" type="static_transform_publisher" name="base_link_to_laser" args="0.0 0.0 0.0 0.0 0.0 0.0 /base_link /laser 40" /-->
<node pkg="tf" type="static_transform_publisher" name="base_link_to_laser" args="0 0 0 0 0 0 /base_link /camera_link 100"/>

#### start the laser scan_matcher ##############################
<node pkg="laser_scan_matcher" type="laser_scan_matcher_node" name="laser_scan_matcher_node" output="screen">

    <param name="fixed_frame" value = "odom"/>
    <param name="base_frame" value="base_link"/>
    <param name="fixed_frame" value="world"/>
    <param name="use_alpha_beta" value="true"/>
    <param name="use_odom" value="false"/>
    <param name="use_imu" value="false"/>
    <param name="max_iterations" value="10"/>
    <param name="publish_pose" value="true"/>
    <param name="publish_tf" value="true"/>
    <param name="use_vel" value="false"/>

</node>
</launch>
2015-03-25 14:22:03 -0500 received badge  Popular Question (source)
2015-03-25 04:02:49 -0500 asked a question How to use laser_scan_matcher with depthimage_to_laserscan and gmapping?

I am kinda new to ROS here, so please help me out accordingly.
I am using ROS Indigo on a Ubuntu 14.04 system. I am using an Asus XTion Pro Live to record a bag file of the /scan topic that I am getting from depthimage_to_laserscan node. I can view the scan properly in rviz and also through rosbag play.
Now, the issue is that I want to use gmapping to perform some basic SLAM but I don't have an /odom topic. So I thought of using laser_scan_matcher to get the Pose2D from my "fake" laser scans.
I tried out the demo given here and it worked perfectly. However, when I try it with my own bag file, I don't get any output in rviz.
How can I use laser_scan matcher output with rviz?


EDIT:
Here is what I'm doing so far
1. roscore 2. roslaunch openni2_launch openni2.launch 3. rosrun depthimage_to_laserscan depthimage_to_laserscan image:=/camera/depth/image_raw 4. rosrun laser_scan_matcher laser_scan_matcher_node

Here is the error I get from laser_scan_matcher

Could not get initial transform from base to laser frame, "base_link" passed to lookupTransform argument target_frame does not exist.
Skipping scan

Here is my rqt_graph
rqt_graph image

2014-10-25 20:23:25 -0500 received badge  Student (source)
2014-10-13 18:09:29 -0500 received badge  Famous Question (source)
2014-09-26 01:20:39 -0500 received badge  Enthusiast
2014-09-24 02:15:24 -0500 received badge  Notable Question (source)
2014-09-23 13:08:12 -0500 commented question rosserial_python Failed Packet Flags + Lost Sync With Device, Restarting

Yeah, I agree with that @paulbovbel. But people have gotten the "Hello World" working on Groovy. Even that isn't working for me.

2014-09-23 12:56:02 -0500 received badge  Popular Question (source)
2014-09-23 12:47:52 -0500 commented answer rosserial Device Lost Sync, restarting

@punching, please check this out. I tried all solutions, including yours, but nothing worked.

2014-09-23 03:49:09 -0500 commented answer Problem setting up rosserial_arduino

@fergs, please see this I tried all solutions, nothing worked. I am running this on a RasPi with Groovy. I only face this issue on my RasPi. When I use Indigo on Ubuntu Trusty, it works without any hassle.

2014-09-23 02:48:31 -0500 commented question rosserial_python Failed Packet Flags + Lost Sync With Device, Restarting

@ahendrix, please help me out here.

2014-09-22 03:57:30 -0500 received badge  Editor (source)
2014-09-22 03:56:19 -0500 received badge  Famous Question (source)
2014-09-22 03:56:07 -0500 commented answer rosrun rosserial_python serial_node.py _port:=/dev/ttyACM0 on RasPi giving "could not open port /dev/ttyUSB0" error

@ahendrix, please check this

2014-09-22 03:11:36 -0500 received badge  Supporter (source)
2014-09-22 03:11:32 -0500 received badge  Scholar (source)
2014-09-22 03:11:30 -0500 commented answer rosrun rosserial_python serial_node.py _port:=/dev/ttyACM0 on RasPi giving "could not open port /dev/ttyUSB0" error

Yeah, I checked that. It's all groovy.

2014-09-22 03:06:17 -0500 asked a question rosserial_python Failed Packet Flags + Lost Sync With Device, Restarting

I am using ROS Groovy on my RasPi and the Arduino Leonardo and the Arduino Mega 2560.
I was trying out the sample Push Button code given on wiki.ros.org on the RasPi using my Leonardo and the Mega. The code uploaded just fine on both Mega and Leonardo. However, when I run rosrun rosserial_python serial_node.py /dev/ttyACM0, I get the following message:

[INFO] [WallTime: 1411372730.262631] ROS Serial Python Node
[INFO] [WallTime: 1411372730.267892] Connecting to /dev/ttyACM0 at 57600 baud
[INFO] [WallTime: 1411372732.420500] Failed Packet Flags

I checked out the solution given here and here but none of that worked. It seems to be a memory problem, but I can't figure out exactly where to begin solving this problem.

2014-09-22 02:14:48 -0500 commented answer rosrun rosserial_python serial_node.py _port:=/dev/ttyACM0 on RasPi giving "could not open port /dev/ttyUSB0" error

You deserve a cookie. That worked. But it gives an error of Failed Packet Flags. Any thoughts?

2014-09-22 01:13:06 -0500 received badge  Notable Question (source)
2014-09-21 23:30:48 -0500 received badge  Popular Question (source)
2014-09-21 15:25:45 -0500 edited question rosrun rosserial_python serial_node.py _port:=/dev/ttyACM0 on RasPi giving "could not open port /dev/ttyUSB0" error

I have installed rosserial_arduino on my RasPi and my Arduino code for Push Button has been uploaded successfully. To run the code, I am following the following steps as mentioned in the tutorial:
1. Startup roscore using roscore
2. Run the run the rosserial_python serial_node.py using rosrun rosserial_python serial_node.py _port:=/dev/ttyUSB0
3. Watch button status on rostopic echo pushed

Now, the issue here is that when I try step 2 using rosrun rosserial_python serial_node.py _port:=/dev/ttyACM0 (my Arduino is on ACM0), the error message I receive is

[ERROR] [WallTime: 1411295710.119812] Error opening serial: could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'

For some reason, it keeps taking USB0 as the input even if I specify ACM0 as the port. This error does not occur on my Ubuntu 14.04 distro running _Indigo_. My RasPi is running _Groovy_. I have also added the necessary group permissions (adding user to dialout, etc.) but to no avail. Please suggest methods to solve this issue.


Thanks to ahendrix for having found out the problem. But there is a follow up issue here. Please check.