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

davevh's profile - activity

2019-02-22 13:15:01 -0500 received badge  Famous Question (source)
2017-05-17 09:11:15 -0500 received badge  Notable Question (source)
2016-11-07 07:45:18 -0500 received badge  Popular Question (source)
2016-10-09 10:43:40 -0500 asked a question getGlobalLinkTransform("r_tcp") gives different results when in nodelet

I launch identical code as an executable node and as a nodelet and get different results when I execute the following lines after moving and arm to the home position:

const Eigen::Affine3d &affine = sideCurrentState.getGlobalLinkTransform("r_tcp"); std::cout << "\n sideCurrentState.getGlobalLinkTransform\n" << affine.translation() << std::endl;

The code to move the arm is: robot_state::RobotState armCurrentState = *armMoveGroup_.getCurrentState(); armCurrentState.setToDefaultValues(armCurrentState.getJointModelGroup("r_arm"),"home"); armMoveGroup_.setJointValueTarget(armCurrentState); success = armMoveGroup_.plan(my_plan); armMoveGroup_.execute(my_plan); armMoveGroup_.setStartState(armCurrentState);

When running as an executable node, I get the correct values from getGlobalLinkTransform(...) after the arm is moved using the code above. When running as a nodelet, I get the values as if the arm didn't move at all. I know the arm moved in both cases because I can see the arm move in Gazebo before the getGlobalLinkTransform(...) line gets executed. What gives?

2015-09-16 17:40:14 -0500 received badge  Famous Question (source)
2015-01-09 09:18:10 -0500 received badge  Notable Question (source)
2015-01-09 09:18:10 -0500 received badge  Popular Question (source)
2014-03-13 06:45:45 -0500 received badge  Editor (source)
2014-03-13 06:29:56 -0500 answered a question rgbd_launch does publish image_rec

Misleading title: should be openni_launch does not publish image_rect.

In Hydro, I create a launch file with the following to get data from my attached Kinect:

<include file="$(find openni_launch)/launch/openni.launch" />"
<node pkg="dynamic_reconfigure" type="dynparam" name="dynparam" args="set_from_parameters /camera/driver">
  <param name="image_mode" value="2" />
  <param name="depth_mode" value="2" /> 
  <param name="depth_registration" value="true" />
  <param name="data_skip" value="5" />
</node>

It publishes a lot of stuff but not "/camera/depth_registered/image_rect". This worked fine with Groovy.

Dave

2014-03-13 06:28:27 -0500 asked a question rgbd_launch does publish image_rec

In Hydro, I create a launch file with the following to get data from my attached Kinect:

<include file="$(find openni_launch)/launch/openni.launch"/> <node pkg="dynamic_reconfigure" type="dynparam" name="dynparam" args="set_from_parameters /camera/driver"> </node>

It publishes a lot of stuff but not "/camera/depth_registered/image_rect". This worked fine with Groovy.

Dave

2014-02-18 03:29:49 -0500 answered a question sound_play.h not in included in ros-hydro-sound-play?

This appears to be a problem for Groovy too.

2013-09-26 04:15:55 -0500 received badge  Famous Question (source)
2013-08-01 21:56:44 -0500 received badge  Nice Answer (source)
2013-06-23 07:57:18 -0500 received badge  Notable Question (source)
2013-06-14 15:30:51 -0500 received badge  Popular Question (source)
2013-06-08 13:18:58 -0500 asked a question Opencv2 Overlay in Groovy using Catkin

I want to modify OpenCV code in Groovy. I used these http://ros.org/wiki/catkin/Tutorials/workspace_overlaying (instructions). In a terminal I typed the following lines:

1) roscd opencv2

2) pwd Terminal shows "/opt/ros/groovy/share/opencv2$" as it should

3) mkdir -p ~/overlay_ws

4) cd ~/overlay_ws

5) mkdir -p ~/overlay_ws/src

6) cd ~/overlay_ws/src

7) wstool init

8) wstool set opencv2 --git git://github.com/Itseez/opencv.git

9) wstool update

10) source /opt/ros/groovy/setup.bash

11) cd ~/overlay_ws/

12) catkin_make

13) source ~/overlay_ws/devel/setup.bash

14) roscd opencv2

15) pwd Terminal still shows "/opt/ros/groovy/share/opencv2" instead of "~/overlay_ws/src/opencv2..."

What I'm I doing wrong?

Dave

2013-03-11 01:43:00 -0500 received badge  Teacher (source)
2013-03-11 01:43:00 -0500 received badge  Necromancer (source)
2013-02-03 10:45:17 -0500 answered a question Cannot launch openni_camera: No devices connected (ROS electric)

I get this error when I install Groovy on Ubuntu 12.10 and do the following:

1) Go to "www.openni.org/openni-sdk/openni-sdk-history-2" and download NiTE v1.5.2.21 for Linux-x64 2) Unzip it and go inside the top-level directory 3) Type: sudo ./install.sh

Before I do these 3 lines above, "roslaunch openni_launch openni.launch" works fine but after I do them I get:

No devices connected.... waiting for devices to be connected

Dave

2013-02-02 12:54:38 -0500 answered a question Get IR stream from kinect

If you used "rosrun image_view image_view image:/camera/ir/image_raw" then the problem may be that you need ":=" instead of just ":".