Ask Your Question

DocSmiley's profile - activity

2018-09-13 09:51:28 -0500 received badge  Nice Question (source)
2015-09-21 22:49:25 -0500 received badge  Good Question (source)
2015-09-18 18:41:49 -0500 marked best answer How to rosservice call with arrays

I'm using ROS electric.

I have an srv that contains 2 arrays of int32[] rosmake functions correctly and the service is listed.

However when I try to call the service I cannot get it to accept the arrays.

Could someone please give me an example of the syntax for the rosservice call command?

2015-07-20 03:43:44 -0500 received badge  Nice Question (source)
2015-04-23 03:32:52 -0500 marked best answer cannot launch on multiple computers

Using Ros Electric and Ubuntu 11.10

I'm attempting to run a launch file from my control computer and have some nodes run locally and some on the remote computer.

My launch files looks like this:

    <machine name="Controller" address="localhost" default="true" >
        <env name="ROSLAUNCH_SSH_UNKNOWN" value="1" />
        <node some_local_nodes />

        <include file="$(find remote_pkg)/launch/app.launch"/>

    <machine name="MYREMOTE" address="MYREMOTE" default="never" user="me" password="my_password">

        <node machine="MYREMOTE" my_remote_app_nodes />


What I get when I run my roslaunch command is:

remote[MYREMOTE-0] starting roslaunch
remote[MYREMOTE-0]: creating ssh connection to MYREMOTE:22, user[me]
remote[MYREMOTE-0]: failed to launch on MYREMOTE:

MYREMOTE is not in your SSH known_hosts file.

Please manually:
  ssh me@MYREMOTE

then try roslaunching again.

If you wish to configure roslaunch to automatically recognize unknown
hosts, please set the environment variable ROSLAUNCH_SSH_UNKNOWN=1

[MYREMOTE-0] killing on exit
unable to start remote roslaunch child: MYREMOTE-0

I know that the remote computer is in my know_hosts file and I followed the instructions here but I continue to get the same error.

I've tried it with/out passwords and with/out the ROSLAUNCH_SSH_UNKNOWN=1

Any suggestions?

2014-01-28 17:28:53 -0500 marked best answer independent stereo cameras

Hi all, My robot has two cameras for eyes that are in fixed locations but can rotate (pitch & yaw) independently of one another.

I've gotten the stereo camera node to work and have run my calibration successfully while the eyes are in fixed positions.

Is there a package that can handle the changes in viewing angles while the eyes are moving?

Thanks for you time.

2014-01-28 17:27:17 -0500 marked best answer sound_play playWave() is not playing sound

I followed the directions I received in:

I had the sound_play's soundClient functionality working for some time.

However it has inexplicably stopped working and I'm unsure as to why.

I'm starting the and running the following in another node.

The relevant lines from my node (and launch file) are:

<param name = "my_file" value = "file://$(find my_audio)/a_sound.wav" />

from sound_play.libsoundplay import SoundClient

soundhandle = SoundClient()
my_sound = rospy.get_param('my_file')

With numerous print statements I can tell that the soundhandle.playWave(my_sound) is being called and does not appear to generate an error, but no sound is played. I have tried the second method as well, but with the same results.

I can run

$rosrun sound_play "/absolute/path/to/my_file.wav"

and get the sound to play every time.

Any help would be appreciated. Thanks

2014-01-28 17:27:11 -0500 marked best answer running bash in a launch file

I have a robot with 2 identical cameras that I need to distinguish between at runtime. The only thing that tells me which is which is the serial number and which of the two ports they appear on is random.

Not a problem. I have a script that will check that for me and will return 0 or 1 depending on which camera it detects on which port. I have also tried it with 'true' and 'false'

I'm trying to use this in my launch file so that when the robot starts up it auto detect and configure the ports.

<param if = "$bash (find uvc_camera)" name = "left/device" type = "string" value = "/dev/video1"/>

When I run this I get:

Invalid <node> tag: $bash (find uvc_camera) is not a 'bool' type.

The page says:

"All tags support if and unless attributes, which include or exclude a tag based on the evaluation of a value. "1" and "true" are considered true values. "0" and "false" are considered false values. Other values will error. "

Has anyone tried to do something similar and if so how do you get ROS to recognize the bool?

Ros Electric, Ubuntu 11.10

2014-01-28 17:26:59 -0500 marked best answer Play a sound file in a python node

I've done the soundplay tutorial and can play a file from the command line, but can someone explain how to do it from inside a python program?

I've followed the directions from a similar question about the text-to-speech and that works fine but I'm unsure what changes are needed for a file instead.

2014-01-28 17:26:50 -0500 marked best answer error installing audio_common

I've been following the instructions for downloading and installing audio_common. I'm running electric on Ubuntu 11.10

I get this error:

$ rosdep install audio_common
Failed to find rosdep libgstreamer-plugins-base0.10-dev for package audio_capture on OS:ubuntu version:oneiric
rosdep install ERROR:
failed to install libgstreamer-plugins-base0.10-dev

I am unsure how to proceed.

2014-01-28 17:26:50 -0500 marked best answer rosrun cannot find specified node file

Using electric on Ubuntu 11.10

I recently created a new package and node. Something I have done before with no problems.

roscreate-pkg my_package rospy std_msgs

There were no errors with rosmake.

When I go to run the node I wrote via

rosrun my_package

I get "No such file or directory" despite the file being in /my_workspace/my_package/nodes/

The file is in place and set as executable, ros can find and build the package but will not run my node.

The only edits I made to the CMakeList.txt file were to uncomment the rosbuild_genmsg() and rosbuild_gensrv() lines.

2014-01-28 17:26:45 -0500 marked best answer writing nodes and defining custom messages/services in rosjava

I'm trying to follow the rosjava tutorials for creating my own node. This node needs to be both a publisher and a server.

I'm finding the rather brief notes on rosjava messages lacking the level of detail I need, being rather new to ROS and rosjava in particular. I have built .mgs and .srv files for other nodes using rospy, but the structure of rosjava seems sufficiently different that I'm unsure what to do.

I need to define two messages one is an arrays of ints, the other an array of floats

I also need to define services that are an array of int/floats pairs (or a single int/float pair), neither service returns anything.

I'm also unsure as to where to place my .java and externally linked library .jar files to have this node run correctly.

Any help would be appreciated.

2014-01-28 17:26:39 -0500 marked best answer Setting up workspace

I recently had to reinstall ros and roll back to electric. I have been trying to configure my system to use my ~/ros_workspace folder instead of the default /opt/ros/electric/ I've tried altering the ROS_PACKAGE_PATH and still cannot get ros to recognize that folder. roscd continues to take me to opt/ros/electric and will not locate my packages even when I explicitly call them. I've tried following all the instructions I could find in the tutorials and here in the forums, but I'm at a bit of a loss.

2014-01-28 17:25:59 -0500 marked best answer Installation problems with Fuerte and rosjava

Hello everyone, I'm trying to install rosjava for use with fuerte on Ubuntu 12.04 I followed the installation instructions substituting fuerte for electric. Everything seems to be working fine until I run the rosws update command. I'm rather new to linux so I'm not sure what I should be doing to fix this. Any help would be appreciated.

~/ros_workspace$ rosws update   
[rosjava_core] Installing (default) to /home/docsmiley/ros_workspace/rosjava_core
WARNING [vcstools] Command failed: 'hg --version'
 errcode: 127:
/bin/sh: 1: hg: not found
Exception caught during install: Error processing 'rosjava_core' : Unable to create vcs client of type hg for /home/docsmiley/ros_workspace/rosjava_core: "Could not determine whether hg is installed 'hg --version returned 127, maybe hg is not installed'"

ERROR: Error processing 'rosjava_core' : Unable to create vcs client of type hg for /home/docsmiley/ros_workspace/rosjava_core: "Could not determine whether hg is installed 'hg --version returned 127, maybe hg is not installed'"
2014-01-10 06:45:03 -0500 marked best answer launching image_view for a topic

I am trying to view the images my robot's cameras are receiving remotely. The following in the command line will bring up a window with the video stream

$ rosrun image_view image_view image:=/stereo/right/image_raw

However I cannot find any information on how to put the "image:=/stereo/right/image_raw" part into a launch file

Alternatively, how can I use image_view in a python node to embed the video in a gui of my design?

I'm using: ROS electric

Ubuntu 11.10



2013-08-27 11:40:21 -0500 received badge  Famous Question (source)