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

zeinab's profile - activity

2020-08-06 04:44:52 -0500 marked best answer depthimage_to_laserscan works with rosrun but the DepthImageToLaserScanNodelet does not work properly

Hi,

I have trouble with a nodelet which is responsible for converting depth image to laser scan. I have the required topics namely /camera/depth/camera_info and /camera/depth/image_raw and here is how my launch file looks like:

<launch>
  <arg name="camera"  value="camera"/>
  <arg name="manager" value="$(arg camera)_nodelet_manager" />

  <group ns="$(arg camera)">
    <node pkg="nodelet" type="nodelet" name="$(arg manager)" respawn="true" args="manager"/>
    <node pkg="nodelet" type="nodelet" name="openni2_camera" args="load openni2_camera/OpenNI2DriverNodelet $(arg manager)" respawn="true">
    </node>

    <node pkg="nodelet" type="nodelet" name="depthimage_to_laserscan_loader" args="load depthimage_to_laserscan/DepthImageToLaserScanNodelet $(arg manager)">
        <param name="scan_height" value="10"/>
        <param name="output_frame_id" value="/depth_camera_link"/>
        <param name="range_min" value="0.3"/>
        <remap from="image" to="/depth/image_raw"/>
        <remap from="scan" to="/scan"/>
    </node>
  </group>
</launch>

My problem is that the /scan topic is empty and is not being published. However when I do

rosrun depthimage_to_laserscan depthimage_to_laserscan image:=/camera/depth/image_raw

the /scan topic is being published as expected. Do you have any suggestions?

Thanks a lot in advance.

2020-08-06 04:44:52 -0500 received badge  Nice Answer (source)
2020-05-07 15:49:59 -0500 received badge  Famous Question (source)
2020-04-09 08:44:26 -0500 received badge  Famous Question (source)
2019-11-13 08:34:39 -0500 received badge  Famous Question (source)
2019-10-03 18:31:51 -0500 received badge  Famous Question (source)
2018-04-18 12:49:35 -0500 received badge  Famous Question (source)
2018-03-27 04:19:55 -0500 received badge  Notable Question (source)
2018-01-23 01:32:11 -0500 marked best answer Problem with openni2_camera, Primesense not detected.

Hi,

I am trying to access the rgdb information of a Primesense sensor. I have ros-hydro-openni2-* installed using sudo apt-get and it previously worked just fine with the following command: rosrun openni2_camera openni2_camera_node but now when I run this command this is what I get:

~device_id is not set! Using first device.
[ INFO] [1409576381.725333109]: No matching device found.... waiting for devices. Reason: std::string openni2_wrapper::OpenNI2Driver::resolveDeviceURI(const string&) @ /tmp/buildd/ros-hydro-openni2-camera-0.1.3-0precise-20140720-0503/src/openni2_driver.cpp @ 623 : Invalid device number 1, there are 0 devices connected.
[ INFO] [1409576384.725593448]: No matching device found.... waiting for devices. Reason: std::string openni2_wrapper::OpenNI2Driver::resolveDeviceURI(const string&) @ /tmp/buildd/ros-hydro-openni2-camera-0.1.3-0precise-20140720-0503/src/openni2_driver.cpp @ 623 : Invalid device number 1, there are 0 devices connected.

I used to be able to access the rgbd information and the topics using exactly the same command about a month ago. I dont know if there has been an update which has led to this. I have ubuntu 12.04 and ROS hydro installed.

I get the same error whether the Primesense sensor is plugged in or not and lsusb doesnt detect this device. I have tried setting the UsbInterface=0 in /etc/openni2/PS1080 as suggested in one of the posts but it didn't help. I would really appreciate your help on this.

Any suggestions are welcome, thanks in advance!


Update 20140903

So this is the output

$ lsusb
    Bus 001 Device 003: ID 058f:9540 Alcor Micro Corp. 
    Bus 001 Device 002: ID 8087:8000 Intel Corp. 
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 002: ID 17ef:1010 Lenovo 
    Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 002 Device 005: ID 5986:026a Acer, Inc 
    Bus 002 Device 004: ID 138a:0017 Validity Sensors, Inc. 
    Bus 002 Device 003: ID 1199:a001 Sierra Wireless, Inc. 
    Bus 002 Device 007: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
    Bus 002 Device 006: ID 17ef:100f Lenovo 
    Bus 002 Device 002: ID 17ef:1010 Lenovo 
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

// now with the Primesense connected

$ lsusb
Bus 001 Device 003: ID 058f:9540 Alcor Micro Corp. 
Bus 001 Device 002: ID 8087:8000 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 17ef:1010 Lenovo 
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 005: ID 5986:026a Acer, Inc 
Bus 002 Device 004: ID 138a:0017 Validity Sensors, Inc. 
Bus 002 Device 003: ID 1199:a001 Sierra Wireless, Inc. 
Bus 002 Device 007: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
Bus 002 Device 006: ID 17ef:100f Lenovo 
Bus 002 Device 002: ID 17ef:1010 Lenovo 
Bus 002 Device 008: ID 1d27:0609 ASUS 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I tried another ... (more)

2017-12-01 02:49:36 -0500 received badge  Popular Question (source)
2017-11-30 07:16:29 -0500 edited question importing rospy and actionlib causes embedding python code in c++ to fail

importing rospy and actionlib causes embedding python code in c++ to fail Hi, I am using a large code base were our robo

2017-11-29 13:38:09 -0500 received badge  Famous Question (source)
2017-11-29 13:14:07 -0500 answered a question What do you suggest as a robust person tracking ROS-based solution using the Kinect

I have found that openpose and its wrappers seem very promising at the moment.

2017-11-29 13:12:35 -0500 asked a question importing rospy and actionlib causes embedding python code in c++ to fail

importing rospy and actionlib causes embedding python code in c++ to fail Hi, I am using a large code base were our robo

2017-10-24 09:30:11 -0500 commented question Track human orientation?

Hi, Have you found a good solution?

2017-07-21 07:36:22 -0500 commented question move_base error

I am not sure if this helps, but I found out that this happens when a new goal is sent. In my case, I was only intereste

2017-07-21 07:32:41 -0500 commented question 'Path' object has no attribute 'currentPosition'

Sure, but I thought there might be an element of ROS such as threads that could lead to this, since I could not think of

2017-06-07 08:56:46 -0500 received badge  Notable Question (source)
2017-06-06 15:10:46 -0500 received badge  Popular Question (source)
2017-06-06 11:59:19 -0500 edited question 'Path' object has no attribute 'currentPosition'

'Path' object has no attribute 'currentPosition' I have a very strange case here. I have a python node that has a class

2017-06-06 11:57:41 -0500 edited question 'Path' object has no attribute 'currentPosition'

'Path' object has no attribute 'currentPosition' I have a very strange case here. I have a python node that has a class

2017-06-06 11:55:15 -0500 edited question 'Path' object has no attribute 'currentPosition'

'Path' object has no attribute 'currentPosition' I have a very strange case here. I have a python node that has a class

2017-06-06 11:45:04 -0500 commented question 'Path' object has no attribute 'currentPosition'

Please let me know what you would like to see more.

2017-06-06 11:44:21 -0500 commented question 'Path' object has no attribute 'currentPosition'

Thanks for your reply. Well, its not copying but rather creating a new object with similar fields for the variables of c

2017-06-06 10:32:14 -0500 asked a question 'Path' object has no attribute 'currentPosition'

'Path' object has no attribute 'currentPosition' I have a very strange case here. I have a python node that has a class

2017-06-06 10:32:12 -0500 asked a question 'Path' object has no attribute 'currentPosition'

'Path' object has no attribute 'currentPosition' I have a very strange case here. I have a python node that has a class

2017-01-26 09:35:23 -0500 received badge  Famous Question (source)
2016-12-05 06:36:22 -0500 commented answer What do you suggest as a robust person tracking ROS-based solution using the Kinect

I was wondering if there is already an off the shelf solution since many people are using the Kinect for this purpose nowadays.

2016-12-02 09:12:44 -0500 received badge  Notable Question (source)
2016-12-02 02:13:05 -0500 received badge  Popular Question (source)
2016-12-01 08:37:24 -0500 commented question What do you suggest as a robust person tracking ROS-based solution using the Kinect

I need a detector and tracker in combination. I could limit the speed of the robot to an extent. I am more considered about the robustness of the detection-tracking of the people (even at the expense of having to use lower speeds)

2016-12-01 06:16:54 -0500 commented question What do you suggest as a robust person tracking ROS-based solution using the Kinect

Thank for your prompt reply. I am targeting an indoor application. The Kinect is mounted on the robot at the height of approximately 1.2 m and the ground can be assumed to be planar. the robot can move up to 2 .5 m/s.

2016-12-01 04:38:38 -0500 asked a question What do you suggest as a robust person tracking ROS-based solution using the Kinect

Hi,

I am looking for a robust person tracking ROS-based solution for the Kinect. I know there exist a number of different packages but I was wondering which one you recommend as a robust tracking solution when using specifically the Kinect.

Thanks a lot in advance.

2016-11-01 01:07:34 -0500 received badge  Famous Question (source)
2016-06-29 09:47:01 -0500 received badge  Notable Question (source)
2016-03-02 21:02:40 -0500 received badge  Notable Question (source)
2015-09-28 14:29:54 -0500 received badge  Famous Question (source)
2015-09-23 03:28:17 -0500 received badge  Notable Question (source)
2015-09-23 03:28:17 -0500 received badge  Popular Question (source)
2015-09-16 09:18:52 -0500 marked best answer problem with obstacle avoidance and the local planner

Hello,

I have a problem regarding obstacle avoidance and local planning. I have a short range Primesense sensor which gives me the scan for my navigation. I am able to do mapping, localization and fairly good navigation when all obstacles are already incorporated in my map. The problem is that dynamic obstacles are detected and shown in my local costmap but the robot does not take them into account somehow. The strange thing for me is that it inflates the obstacles which are in the map but not the dynamic obstacles even though I have inflation_radius set in my local_costmap_params.yaml. I have this suspicion that it might be that the obstacles are only detected 35 cm away from the kinect and otherwise it thinks that the map is clear and since it plans for a short distance in each step it cant detect the obstacles ( I don't know if it makes sense!) I tried changing the sim_granularity: 0.2 but didn't see a difference. Does anyone have an idea about this? I have attached a snapshot of my rviz.

Thanks a lot in advance.

C:\fakepath\Capture.JPG

2015-09-16 09:18:52 -0500 received badge  Nice Answer (source)