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

sameer's profile - activity

2018-03-12 15:34:39 -0500 received badge  Great Question (source)
2017-10-09 15:46:28 -0500 received badge  Good Question (source)
2015-07-27 17:31:35 -0500 received badge  Nice Question (source)
2014-01-28 17:27:36 -0500 marked best answer rosws info gives me error 'VcsClient' object has no attribute 'url_matches'

I have been trying to use rosws to manage my workspace and .rosinstall file. I used rosws merge and rosws set to create the file, and rosws update to grab all the packages from their various repositories. now when I run rosws info I am getting all these errors that look like this:

Error processing 'rtt_geometry' : 'VcsClient' object has no attribute 'url_matches'

The python stack trace looks like:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/rosinstall-0.6.19-py2.7.egg/rosinstall/common.py", line 252, in run
    result_dict = self.worker.do_work()
  File "/usr/local/lib/python2.7/dist-packages/rosinstall-0.6.19-py2.7.egg/rosinstall/multiproject_cmd.py", line 373, in do_work
    path_spec = self.element.get_versioned_path_spec()
  File "/usr/local/lib/python2.7/dist-packages/rosinstall-0.6.19-py2.7.egg/rosinstall/config_elements.py", line 378, in get_versioned_path_spec
    if self._get_vcsc().url_matches(curr_uri, uri):
AttributeError: 'VcsClient' object has no attribute 'url_matches'

and my .rosinstall file looks like:

# THIS IS A FILE WHICH IS MODIFIED BY rosinstall
# IT IS UNLIKELY YOU WANT TO EDIT THIS FILE BY HAND,
# UNLESS FOR REMOVING ENTRIES.
# IF YOU WANT TO CHANGE THE ROS ENVIRONMENT VARIABLES
# USE THE rosinstall TOOL INSTEAD.
# IF YOU CHANGE IT, USE rosinstall FOR THE CHANGES TO TAKE EFFECT
- other: {local-name: /opt/ros/fuerte/share/ros}
- other: {local-name: /opt/ros/fuerte/share}
- other: {local-name: /opt/ros/fuerte/stacks}
- setup-file: {local-name: /opt/ros/fuerte/setup.sh}
- svn: {local-name: biorob_common, uri: 'https://tu-darmstadt-ros-pkg.googlecode.com/svn/trunk/biorob_common'}
- git: {local-name: falkor_quadrotor, uri: 'https://github.com/FalkorSystems/falkor_quadrotor.git'}
- git: {local-name: hector_common, uri: 'https://github.com/FalkorSystems/hector_common.git'}
- svn: {local-name: hector_gazebo, uri: 'https://tu-darmstadt-ros-pkg.googlecode.com/svn/branches/fuerte/hector_gazebo'}
- git: {local-name: hector_localization, uri: 'https://github.com/FalkorSystems/hector_localization.git'}
- svn: {local-name: hector_models, uri: 'https://tu-darmstadt-ros-pkg.googlecode.com/svn/branches/fuerte/hector_models'}
- svn: {local-name: hector_navigation, uri: 'http://tu-darmstadt-ros-pkg.googlecode.com/svn/trunk/hector_navigation'}
- svn: {local-name: hector_nist_arenas_gazebo, uri: 'https://tu-darmstadt-ros-pkg.googlecode.com/svn/trunk/hector_nist_arenas_gazebo'}
- svn: {local-name: hector_quadrotor, uri: 'https://tu-darmstadt-ros-pkg.googlecode.com/svn/branches/fuerte/hector_quadrotor'}
- svn: {local-name: hector_quadrotor_apps, uri: 'http://tu-darmstadt-ros-pkg.googlecode.com/svn/trunk/hector_quadrotor_apps'}
- svn: {local-name: hector_quadrotor_experimental, uri: 'https://tu-darmstadt-ros-pkg.googlecode.com/svn/trunk/hector_quadrotor_experimental'}
- svn: {local-name: hector_sandbox, uri: 'http://tu-darmstadt-ros-pkg.googlecode.com/svn/trunk/hector_sandbox'}
- svn: {local-name: hector_slam, uri: 'https://tu-darmstadt-ros-pkg.googlecode.com/svn/branches/fuerte/hector_slam'}
- svn: {local-name: hector_turtlebot, uri: 'http://tu-darmstadt-ros-pkg.googlecode.com/svn/trunk/hector_turtlebot'}
- svn: {local-name: hector_ugv_common, uri: 'https://tu-darmstadt-ros-pkg.googlecode.com/svn/trunk/hector_ugv_common'}
- svn: {local-name: hector_worldmodel, uri: 'http://tu-darmstadt-ros-pkg.googlecode.com/svn/trunk/hector_worldmodel'}
- git:
    local-name: imu_tools
    meta: {repo-name: ccny-ros-pkg}
    uri: https://github.com/ccny-ros-pkg/imu_tools.git
- git:
    local-name: mav_tools
    meta: {repo-name: ccny-ros-pkg}
    uri: https://github.com/ccny-ros-pkg/mav_tools.git
- git:
    local-name: orocos_toolchain
    meta: {repo-name: kul-ros-pkg}
    uri: http://git.gitorious.org/orocos-toolchain/orocos_toolchain.git
    version: master
- git:
    local-name: rtt_common_msgs
    meta: {repo-name: kul-ros-pkg}
    uri: http://git.mech.kuleuven.be/robotics/rtt_common_msgs.git
    version: master
- git:
    local-name: rtt_geometry
    meta: {repo-name: kul-ros-pkg}
    uri: http://git.mech.kuleuven.be/robotics/rtt_geometry.git
    version: master
- git:
    local-name: rtt_ros_comm
    meta: {repo-name: kul-ros-pkg}
    uri: http://git.mech.kuleuven.be/robotics/rtt_ros_comm ...
(more)
2014-01-28 17:27:28 -0500 marked best answer Running two quads with hector_quadrotor_gazebo

Hello -- I'm trying to run two quads in simulation using hector_quadrotor_gazebo. I have been able to modify things such that each quad is in a seperate namespace and start at different locations. However, the /calibrate service does not get assigned to a different namespace. I end up with the following behavior:

1) I launch a world with a single quad, I'm able to control it with my gamepad through hector_quadrotor_teleop

2) I launch the second quad in the seperate namespace, and the first quad then starts up towards the sky with about 3 m/s of linear/z velocity. I get an error message in my original roslaunch terminal window:

[ERROR] [1348353951.598192355, 41.102000000]: Tried to advertise a service that is
already advertised in this node [/calibrate]

Neither quad is controllable via teleop/cmd_vel anymore.

I'm not sure if this /calibrate issue is the problem. I can't figure out which bit of code is setting up the /calibrate service. I did rosservice info on it:

sameer@ubuntu:~/rosinstall-test/here$ rosservice info /calibrate
Node: /gazebo
URI: rosrpc://ubuntu:38106
Type: std_srvs/Empty
Args:

Anyone have an idea or a direction I can go to figure out what is happening? Thanks!

2014-01-28 17:27:27 -0500 marked best answer Running two joysticks under two namespaces

Hi everyone, I'm trying to learn to use namespaces here in ROS and for a first try I figure I would have two joysticks, one on /dev/input/js1 and the other on /dev/input/js2 -- I want two instances of joy_node running, one publishing on /ns1/joy and the other one publishing on /ns2/joy

my launch file looks like this:

<launch>
  <group ns="ns1">
    <param name="dev" value="/dev/input/js1" />
    <include file="$(find falkor_quadrotor_teleop)/launch/ps3_gamepad.launch" />
  </group>
  <group ns="ns2">
    <param name="dev" value="/dev/input/js2" />
    <include file="$(find falkor_quadrotor_teleop)/launch/ps3_gamepad.launch" />
  </group>
</launch>

And ps3_gamepad.launch looks like this:

<?xml version="1.0"?>

<launch>

  <node name="joy_node" pkg="joy" type="joy_node" output="screen" />
  <!-- Note that axis IDs are those from the joystick message plus one, to be able to invert axes by specifiying either positive or negative axis numbers.-->
  <!-- Axis 2 from joy message thus has to be set as '3' or '-3'(inverted mode) below-->
  <node name="quadrotor_teleop" pkg="hector_quadrotor_teleop" type="quadrotor_teleop">
    <param name="x_axis" value="2"/>
    <param name="y_axis" value="1"/>
    <param name="z_axis" value="4"/>
    <param name="yaw_axis" value="3"/>
    <param name="x_velocity_max" value="5"/>
    <param name="y_velocity_max" value="5"/>
    <param name="z_velocity_max" value="5"/>
  </node>
</launch>

However when I run the launch file, both instances of joy_node are listening to /dev/input/js0:

process[rosout-1]: started with pid [4514]
started core service [/rosout]
process[ns1/joy_node-2]: started with pid [4526]
process[ns1/quadrotor_teleop-3]: started with pid [4544]
[ INFO] [1348322541.484222195]: Opened joystick: /dev/input/js0. deadzone_: 0.050000.
process[ns2/joy_node-4]: started with pid [4564]
[ INFO] [1348322541.559938826]: Opened joystick: /dev/input/js0. deadzone_: 0.050000.
process[ns2/quadrotor_teleop-5]: started with pid [4582]

The parameters appear to be set correctly:

$ rosparam get /ns1
dev: /dev/input/js1
quadrotor_teleop: {x_axis: 2, x_velocity_max: 5, y_axis: 1, y_velocity_max: 5, yaw_axis: 3,
  z_axis: 4, z_velocity_max: 5}

$ rosparam get /ns2
dev: /dev/input/js2
quadrotor_teleop: {x_axis: 2, x_velocity_max: 5, y_axis: 1, y_velocity_max: 5, yaw_axis: 3,
  z_axis: 4, z_velocity_max: 5}

Any ideas on what I'm doing wrong here? Thanks.

2014-01-28 17:27:16 -0500 marked best answer using cv_bridge and converting the cvmat to numpy efficiently

Hello everyone. I wrote a bunch of image tracking in python using the "cv2" API.

I am now trying to plug that into ROS and I noticed that cv_bridge gives me a cvmat object, not a numpy object that I need to use with the cv2 API. I used numpy.asarray() to convert the cvmat to numpy, but this introduces a serious amount of lag into my system.

I wrote a very simple test which takes the output of the cv_bridge and calls cv.ShowImage on it. It works fine. Then I modified it to take the cv_bridge output, convert it to a numpy with asarray() and run cv2.imshow() on it.

The second case had about a second of lag! Is that expected? Is there any way to convert the cvmat to a numpy "in-place" ?

Thanks -s

2013-12-18 04:14:12 -0500 received badge  Taxonomist
2013-04-01 06:59:02 -0500 commented answer unable to get Point Grey USB camera work in ubuntu

This udev rule worked but when I ran the camera1394_node I got a segmentation fault. Any ideas?

2013-02-23 06:48:12 -0500 received badge  Famous Question (source)
2013-02-08 02:24:41 -0500 received badge  Famous Question (source)
2013-02-08 02:24:41 -0500 received badge  Notable Question (source)
2013-02-07 20:37:35 -0500 received badge  Famous Question (source)
2013-01-30 21:36:00 -0500 received badge  Notable Question (source)
2013-01-29 23:23:41 -0500 received badge  Nice Answer (source)
2013-01-29 16:12:15 -0500 received badge  Popular Question (source)
2013-01-25 16:23:36 -0500 received badge  Scholar (source)
2013-01-25 16:23:04 -0500 received badge  Commentator
2013-01-25 16:22:59 -0500 commented answer Error when compiling PCL for ROS groovy install from source on Ubuntu 12.04.1
2013-01-25 09:26:58 -0500 answered a question Writing a Python node that publishes AND subscribes to topics of different message frequency

You should be able to do thus by setting up your callback for the subscribe and then publishing out of the main loop.

def callback( data ):
     <do stuff>

subscriber = rospy.Subscriber( topic, type, callback )
publisher = rospy.Publisher( topic, type )

while not rospy.is_shutdown():
   <do stuff>
   publisher.publish( msg )
2013-01-25 09:18:26 -0500 asked a question Error when compiling PCL for ROS groovy install from source on Ubuntu 12.04.1

I'm trying to compile groovy from source on my Ubuntu 12.04.1 to help me understand catkin better and also so I can compile on my BeagleBone later. I followed the instructions on

http://www.ros.org/wiki/groovy/Installation/Source

When I run:

$ ./src/catkin/bin/catkin_make_isolated --install

I get:

==> make -j4 -l4 in '/home/sameer/ros_catkin_ws/build_isolated/pcl'
[  0%] Built target pcl_io_ply
[  0%] Built target pcl_octree
[  1%] Built target pcl_pcd_convert_NaN_nan
[  1%] Built target pcl_ply2ply
[  2%] [  3%] Built target pcl_ply2obj
Built target pcl_ply2raw
Linking CXX shared library ../lib/libpcl_common.so
Scanning dependencies of target pcl_plyheader
[  3%] Building CXX object io/tools/ply/CMakeFiles/pcl_plyheader.dir/plyheader.cpp.o
/usr/bin/ld: cannot find -lsensor_msgs
/usr/bin/ld: cannot find -lroscpp_serialization
/usr/bin/ld: cannot find -lrosconsole
/usr/bin/ld: cannot find -lrostime
collect2: ld returned 1 exit status
make[2]: *** [lib/libpcl_common.so.1.6.0] Error 1
make[1]: *** [common/CMakeFiles/pcl_common.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX executable ../../../bin/pcl_plyheader
[  3%] Built target pcl_plyheader
make: *** [all] Error 2

<== Failed to process package 'pcl': 
  Command '/home/sameer/ros_catkin_ws/install_isolated/env.sh make -j4 -l4' returned non-zero exit status 2

Reproduce this error by running:
==> /home/sameer/ros_catkin_ws/install_isolated/env.sh make -j4 -l4

Command failed, exiting.
2013-01-11 19:57:57 -0500 received badge  Famous Question (source)
2013-01-08 21:02:39 -0500 received badge  Famous Question (source)
2013-01-03 15:02:12 -0500 received badge  Famous Question (source)
2012-12-28 08:56:04 -0500 marked best answer nodelets in python

Hi all -- I don't know much about python threading nor how nodelets are actually implemented, so please pardon me if this is a stupid question, but is there any way to get nodelet functionality using rospy?

2012-12-16 03:42:35 -0500 commented answer Issue with eros_python_tools and roscreate-qt-ros-pkg

Hi, I am not trying to run roscreate-qt-pkg but I can into the same error with rostoolchain. I did install ros-fuerte-qt-ros but now I can't find rostoolchain. Did that get installed?

2012-12-16 03:42:30 -0500 commented answer Issue with eros_python_tools and roscreate-qt-ros-pkg

Hi, I am not trying to run roscreate-qt-pkg but I can into the same error with rostoolchain. I did install ros-fuerte-qt-ros but now I can't find rostoolchain. Did that get installed?

2012-11-28 21:17:54 -0500 received badge  Notable Question (source)
2012-11-16 21:42:52 -0500 received badge  Popular Question (source)
2012-11-16 20:16:05 -0500 received badge  Self-Learner (source)
2012-11-16 20:16:05 -0500 received badge  Teacher (source)