Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all 248 articles
Browse latest View live

installing my ros package

$
0
0
I have a python node that takes xbox 360 controller inputs and publishes to cmd_vel topic. This node works fine when the ROS master is running on my laptop. The robot i've built has a raspberry pi on it which runs the ROS master, and I use my laptop to run RVIZ and the node mentioned above, communicating with the ROS master via wifi. The problem is that i cant run the node on my laptop with the ros master being on the pi. The comms between the two computers works fine, installed nodes on either work fine. I.e RVIS runs happily on the laptop and i can rostopic echo stuff. But when i try and run the node that i made in the catkin_ws i get something along the lines of the following - Unable to register with master node [http://192.168.0.101:11311/]: master may not be running yet. Will keep trying. Every time i reboot my machine i need to source the bash file in devel or whichever one it is (ROS reminds me of a messy university dorm room sometimes), I think this is the problem, as if i try and run a preinstalled node like the teleop key, it can't talk to the ros master. But then if i source ~/.bashrc (which is done by default in every new terminal) it can't find my package, which has my joystick node in it. My question is, how do i install this package onto my system, much in the same way apt-get does when you install a ros package that way? A google search makes me think rosinstall might be what im after, but trying to find meaningful documentation is like trying to boil water in a chocolate tea pot. As per with anything ROS related. Cheers in advance.

New linux user account can't access ROS tooling

$
0
0
Hi there, I installed ROS on my PC using my normal user account. I can use all ROS tooling such as catkin_make or roslaunch on this account. I just created a new user using 'adduser, however this user can't access any of the ROS tooling. I added the /opt/ros/indigo/bin path to the user's PATH, which helps the user locate the executeables but they still fail when running. It feels like I'm doing something fundamentally wrong with adding this new user, am I missing something?

install ros indigo in Mac

$
0
0
hi guys: could anyone help me solve this problem? I am trying to install ROS indigo in Mac pro, and I follow [this](http://wiki.ros.org/action/login/indigo/Installation/OSX/Homebrew/Source) tutorial. however, after I run this command : rosinstall_generator desktop_full --rosdistro indigo --deps --wet-only --tar > indigo-desktop-full-wet.rosinstall the error come out, following is the error Traceback (most recent call last): File "/usr/local/bin/rosinstall_generator", line 141, in rc = main() File "/usr/local/bin/rosinstall_generator", line 129, in main upstream_version_tag=args.upstream, upstream_source_version=args.upstream_development) File "/usr/local/lib/python2.7/site-packages/rosinstall_generator/generator.py", line 249, in generate_rosinstall wet_package_names, unreleased_repo_names = _get_packages_for_repos(distro_name, repo_names) File "/usr/local/lib/python2.7/site-packages/rosinstall_generator/generator.py", line 93, in _get_packages_for_repos wet_distro = get_wet_distro(distro_name) File "/usr/local/lib/python2.7/site-packages/rosinstall_generator/generator.py", line 215, in get_wet_distro _wet_distro = _get_wet_distro(distro_name) File "/usr/local/lib/python2.7/site-packages/rosinstall_generator/distro.py", line 46, in get_distro return get_cached_distribution(index, distro_name) File "/usr/local/lib/python2.7/site-packages/rosdistro/__init__.py", line 134, in get_cached_distribution cache = get_distribution_cache(index, dist_name) File "/usr/local/lib/python2.7/site-packages/rosdistro/__init__.py", line 161, in get_distribution_cache yaml_gz_str = load_url(url, skip_decode=True) File "/usr/local/lib/python2.7/site-packages/rosdistro/loader.py", line 63, in load_url contents = fh.read() File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 355, in read data = self._sock.recv(rbufsize) File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 597, in read s = self.fp.read(amt) File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 384, in read data = self._sock.recv(left) socket.timeout: timed out thanks advance

about ros install - hash sum mismatch error

$
0
0
Hi, all I am using the ros-kinetic version on Ubuntu 16.04.
However, ROS has not been installed for the following reason, Since the last two days, Following line is the result sentence of apt-get update.
{{{ http://packages.ros.org/ros/ubuntu/dists/xenial/main/binary-i386/Packages.gz Hash Sum mismatch }}} How can I install ros-kinetic-desktop?
please~~ tell me answer to solve the problem. thanks.

fail to install industrial_core

$
0
0
I try to install ros industrial, but dependency problems occur. shawn@evashawn:~$ sudo apt-get -f install ros-indigo-industrial-core ros-indigo-open-industrial-ros-controllers Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: ros-indigo-industrial-core : Depends: ros-indigo-industrial-deprecated but it is not going to be installed Depends: ros-indigo-industrial-msgs but it is not going to be installed Depends: ros-indigo-industrial-robot-client but it is not going to be installed Depends: ros-indigo-industrial-robot-simulator but it is not going to be installed Depends: ros-indigo-industrial-trajectory-filters but it is not going to be installed Depends: ros-indigo-industrial-utils but it is not going to be installed Depends: ros-indigo-simple-message but it is not going to be installed ros-indigo-open-industrial-ros-controllers : Depends: ros-indigo-open-controllers-interface but it is not going to be installed ros-indigo-ur-kinematics : Depends: ros-indigo-moveit-kinematics but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

"ImportError no module named" error when package with msg also has setup.py and installed

$
0
0
I have a package with a foo.msg and a python module my_package/src/my_package/bar.py that works fine in the devel space- I can import the msg or alternatively import the python module just fine. But after running catkin_make install the I get an import error: catkin_make install source devel/setup.bash python >>>> from mypackage.msg import Foo >>>>>>>> # (no error output, worked fine) source install/setup.bash >>>> from mypackage.msg import Foo Traceback (most recent call last): File "", line 1, in Import Error: No module named my_package.msg I commented out the `catkin_python_setup` from the CMakeLists.txt and rebuilt (`rm -rf build devel install` followed by `source /opt/ros/jade/setup.bash` seems safest which maybe ought to become the topic of another question...), then the import works fine. One thing I notice is that the module bar.py is installed into install/lib/python2.7/dist-packages/my_package, and there are no __init__.py files in that directory, only one directory lower in msg (it contains __init__.py and _Foo.py and pyc versions). This is jade with Ubuntu 14.04.

install ros on raspberry pi

$
0
0
I am trying to follow the install for kinetic for the raspberry pi 3. http://wiki.ros.org/ROSberryPi Its says if I have a raspberry pi 3 I can follow a easy method at: http://wiki.ros.org/kinetic/Installation/Ubuntu But I do not have a dedicated terminal and need to ssh into the raspberry from my pc. The instructions assume that I have ubuntu-mate on the raspberry, as far as I know there is no way to ssh into ubuntu-mate without first going into its desktop. Are these instructions incorrect ... should ignore the easy recommendation and just follow the body of the instructors that follow in ROSberryPi. These instructions seem to work somewhat but there are issues accessing some of the packages that I have been unable to resolve. I am using realVNC(vncviewer) to ssh in to pi. I am using 'catkin build' I will re-flash my sdcard with raspbian and go though the procedure again...but if anyone has some input please let me know. Thank you for your time.

fail to install dynamixel_motor unmet depedencies

$
0
0
What it really means? How to solve? I have tried plus -f, but still not works Ubuntu 14.04, ROS indigo, all the environment setup is following the official guideline. shawn@evashawn:~/catkin_ws$ sudo apt-get install ros-indigo-dynamixel-motor Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: ros-indigo-dynamixel-motor : Depends: ros-indigo-dynamixel-controllers but it is not going to be installed Depends: ros-indigo-dynamixel-driver but it is not going to be installed Depends: ros-indigo-dynamixel-msgs but it is not going to be installed Depends: ros-indigo-dynamixel-tutorials but it is not going to be installed ros-indigo-ur-kinematics : Depends: ros-indigo-moveit-kinematics but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

fail to install ros-indigo-moveit-kinematics

$
0
0
ubuntu 14.04, ros indigo It seems like something exists in multiple packages. How to fix it? ![image description](/upfiles/1493792709360361.png) shawn@evashawn:/opt/ros/indigo/share$ sudo apt-get install ros-indigo-moveit-kinematics Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: ros-indigo-moveit-kinematics 0 upgraded, 1 newly installed, 0 to remove and 533 not upgraded. 2 not fully installed or removed. Need to get 0 B/131 kB of archives. After this operation, 687 kB of additional disk space will be used. (Reading database ... 282423 files and directories currently installed.) Preparing to unpack .../ros-indigo-moveit-kinematics_0.7.8-0trusty-20170328-004135-0700_amd64.deb ... **Unpacking ros-indigo-moveit-kinematics (0.7.8-0trusty-20170328-004135-0700) ... dpkg: error processing archive /var/cache/apt/archives/ros-indigo-moveit-kinematics_0.7.8-0trusty-20170328-004135-0700_amd64.deb (--unpack): trying to overwrite '/opt/ros/indigo/include/moveit/srv_kinematics_plugin/srv_kinematics_plugin.h', which is also in package ros-indigo-moveit-ros-planning 0.7.2-0trusty-20161115-195213-0800 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)** Errors were encountered while processing: /var/cache/apt/archives/ros-indigo-moveit-kinematics_0.7.8-0trusty-20170328-004135-0700_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

Unable to find ros-indigo-gazebo7-ros-pkgs

$
0
0
I have just installed ROS Indigo, along with Gazebo 7 from the separate Gazebo site. According to this page, [Using a specific Gazebo version with ROS](http://gazebosim.org/tutorials/?tut=ros_wrapper_versions#UsingaspecificGazeboversionwithROS), I should be able to install ros-pkgs from Debian with (I believe) the following name: `ros-indigo-gazebo7-ros-pkgs`. However, I cannot find this package. I believe I already added the OSR Foundation packages, but perhaps I did not do it correctly. I have http://packages.osrfoundation.org/gazebo/ubuntu-stable trust main in my repository list (I am running Ubuntu trusty). Can someone tell me what I am doing wrong, or where this package is located?

OS X - Indigo - 2.1.2 and 2.1.3 install problems

$
0
0
**I get this message after running 2.1.2 :** ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: python_qt_binding: No definition of [python-qt-bindings] for OS [osx] qwt_dependency: No definition of [python-qt-bindings-qwt5] for OS [osx] rviz: No definition of [libqt4-opengl-dev] for OS [osx] gl_dependency: No definition of [python-qt-bindings-gl] for OS [osx] webkit_dependency: No definition of [python-qt-bindings-webkit] for OS [osx] qt_gui_cpp: No definition of [qt4-qmake] for OS [osx] qt_gui: No definition of [python-qt-bindings] for OS [osx] turtlesim: No definition of [libqt4] for OS [osx] When I try the next step 2.1.13 ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release **I get this message:** -- Using CATKIN_DEVEL_PREFIX: /Users/hector2/ros_catkin_ws/devel_isolated/catkin -- Using CMAKE_PREFIX_PATH: -- Using PYTHON_EXECUTABLE: /usr/local/bin/python -- Using default Python package layout -- Could NOT find PY_em (missing: PY_EM) CMake Error at cmake/empy.cmake:29 (message): Unable to find either executable 'empy' or Python module 'em'... try installing the package 'python-empy' Call Stack (most recent call first): cmake/all.cmake:147 (include) CMakeLists.txt:8 (include) -- Configuring incomplete, errors occurred! See also "/Users/hector2/ros_catkin_ws/build_isolated/catkin/CMakeFiles/CMakeOutput.log". <== Failed to process package 'catkin': Command '['cmake', '/Users/hector2/ros_catkin_ws/src/catkin', '-DCATKIN_DEVEL_PREFIX=/Users/hector2/ros_catkin_ws/devel_isolated/catkin', '-DCMAKE_INSTALL_PREFIX=/Users/hector2/ros_catkin_ws/install_isolated', '-DCMAKE_BUILD_TYPE=Release', '-G', 'Unix Makefiles']' returned non-zero exit status 1 I would appreciate any help. Thanks!

Can we install ROS on Red Hat Linux

$
0
0
Hi, I am planning to buy a workstation with Red Hat Linux OS. Can we install ROS on it?? Also can we install RViz on Red Hat Linux?? Please can someone answer this asap. Regards Sudeep

Creating Packages of ros--package_name type

$
0
0
Folks, How do I convert my catking workspace in the equivalent of a, for instance, ros-indigo-openni2_camera type? By that I mean, how can I distribute my packages to other computers without having to share my code? I want to have the same effect as when I do, for instance, sudo apt-get install ros-indigo-openni2-launch on my terminal. Thanks.

Preferred method to install catkin on Debian stretch

$
0
0
Fairly new to ROS haven't looked at it in a year. This time around I was happy to see it installed via packages to Debian rather than installing a pre configured distribution .ISO, I have Debian 9 aka stretch installed on an old HP tx2000. I have ros installed by including jeffa@lunar:~$ uname -a Linux lunar 4.9.0-2-amd64 #1 SMP Debian 4.9.18-1 (2017-03-30) x86_64 GNU/Linux jeffa@lunar:~$ root@lunar:/etc/apt/sources.list.d# cat ros-latest.list deb http://packages.ros.org/ros/ubuntu stretch main I followed the directions [Debian install of ROS Lunar](http://wiki.ros.org/lunar/Installation/Debian) `apt-get install ros-lunar-desktop-full` Should I install catkin from packages? or build catkin from source? I tried both attempting building from source first then tried with apt-get [...] [ 19%] Built target pch_Generate_opencv_surface_matching Scanning dependencies of target pch_Generate_opencv_video [ 19%] Generating precomp.hpp [ 19%] Generating precomp.hpp.gch/opencv_video_Release.gch Scanning dependencies of target pch_Generate_opencv_viz [ 19%] Generating precomp.hpp [ 19%] Generating precomp.hpp.gch/opencv_viz_Release.gch In file included from /usr/include/c++/6/ext/string_conversions.h:41:0, from /usr/include/c++/6/bits/basic_string.h:5417, from /usr/include/c++/6/string:52, from /usr/include/c++/6/stdexcept:39, from /usr/include/c++/6/array:39, from /usr/include/c++/6/tuple:39, from /usr/include/c++/6/bits/stl_map.h:63, from /usr/include/c++/6/map:61, from /home/jeffa/ros_catkin_ws/build_isolated/opencv3/install/modules/viz/precomp.hpp:49: /usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory #include_next ^ compilation terminated. modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/build.make:62: recipe for target 'modules/viz/precomp.hpp.gch/opencv_v iz_Release.gch' failed make[2]: *** [modules/viz/precomp.hpp.gch/opencv_viz_Release.gch] Error 1 CMakeFiles/Makefile2:3082: recipe for target 'modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all' failed make[1]: *** [modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 19%] Built target pch_Generate_opencv_video Makefile:160: recipe for target 'all' failed make: *** [all] Error 2<== Failed to process package 'opencv3': Command '['/home/jeffa/ros_catkin_ws/install_isolated/env.sh', 'make', '-j2', '-l2']' returned non-zero exit status 2 Reproduce this error by running: ==> cd /home/jeffa/ros_catkin_ws/build_isolated/opencv3 && /home/jeffa/ros_catkin_ws/install_isolated/env.sh make -j2 -l2 Command failed, exiting. jeffa@lunar:~/ros_catkin_ws$ Then it occurred to me to `apt-get install catkin` root@lunar:/etc/apt/sources.list.d# apt-get install catkin Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: catkin : Depends: python-catkin-pkg but it is not going to be installed E: Unable to correct problems, you have held broken packages. root@lunar:/etc/apt/sources.list.d# root@lunar:/etc/apt/sources.list.d# dpkg --get-selections | grep catk python-catkin-pkg install python-catkin-pkg-modules install ros-lunar-catkin install root@lunar:/etc/apt/sources.list.d#

ros installation fail in osx.

$
0
0
Hello I'm Carlos, I have a lot of troubles in my ROS installation in OSX. In first place, I had OSX 'EL CAPITAN'. But I had a error in the rosdep step, the error was a conflict with qt4 and qt5. Because of this error I had format my Macbook Air, I thought that the error was produced because I had got a lot of apps and libraries in my computer, and now I have OSX 'SIERRA', but I had the problem again. Then I saw this post: http://answers.ros.org/question/242518/kinetic-installation-fails-with-failed-to-detect-successful-installation-of-qt5-error/#245782 And I did the rosdep with the --skip-keys argument. > rosdep install --from-paths src --ignore-src --rosdistro kinetic -y --skip-keys "libqt5-core libqt5-gui libqt5-opengl libqt5-opengl-dev libqt5-widgets qt5-qmake qtbase5-dev" Now I solved this error but I have another after with ogre. If I put ogre in --skip-keys then appears other many errors... The error output is: > executing command [brew install ogre] Error: No available formula with the name "ogre" ==> Searching for similarly named formulae... This similarly named formula was found: progress ✔ To install it, run: brew install progress ✔ ==> Searching taps... These formulae were found in taps: homebrew/nginx/upload-progress-nginx-module homebrew/php/php55-uploadprogress homebrew/php/php53-uploadprogress homebrew/php/php56-uploadprogress homebrew/php/php54-uploadprogress Caskroom/cask/progressive-downloader To install one of them, run (for example): brew install homebrew/nginx/upload-progress-nginx-module ERROR: the following rosdeps failed to install homebrew: command [brew install ogre] failed How Could I solve this? Thank you. Regards.

Trying to install ROS Indigo, unmet dependencies

$
0
0
I'm following these instructions on how to install Indigo: http://wiki.ros.org/indigo/Installation/Ubuntu When I enter the command: `sudo apt-get install ros-indigo-desktop-full` I get the following output: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: ros-indigo-desktop-full : Depends: ros-indigo-desktop but it is not going to be installed Depends: ros-indigo-perception but it is not going to be installed Depends: ros-indigo-simulators but it is not going to be installed Depends: ros-indigo-urdf-tutorial but it is not going to be installed unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed Depends: libcheese7 (>= 3.0.1) but it is not going to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. According to the instructions I am following, unmet dependencies should be solved with either the command `sudo apt-get install xserver-xorg-dev-lts-utopic mesa-common-dev-lts-utopic libxatracker-dev-lts-utopic libopenvg1-mesa-dev-lts-utopic libgles2-mesa-dev-lts-utopic libgles1-mesa-dev-lts-utopic libgl1-mesa-dev-lts-utopic libgbm-dev-lts-utopic libegl1-mesa-dev-lts-utopic` or `sudo apt-get install libgl1-mesa-dev-lts-utopic`. However when I try to use these commands I get unable to locate package errors such as `E: Unable to locate package libgl1-mesa-dev-lts-utopic`. I'd appreciate any advice on how to solve these dependency issues.

Cannot install kinetic (unmet dependencies)

$
0
0
Hi, I have an installation problem. By running "sudo apt-get install ros-kinetic-desktop" on a Ubuntu 16.04.1 LTS (Xenial) i have the following output Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: ros-kinetic-desktop : Depends: ros-kinetic-common-tutorials but it is not going to be installed Depends: ros-kinetic-geometry-tutorials but it is not going to be installed Depends: ros-kinetic-robot but it is not going to be installed Depends: ros-kinetic-ros-tutorials but it is not going to be installed Depends: ros-kinetic-urdf-tutorial but it is not going to be installed Depends: ros-kinetic-visualization-tutorials but it is not going to be installed Depends: ros-kinetic-viz but it is not going to be installed E: Unable to correct problems, you have held broken packages. what can i do? thanks in advance

Where does ROS install?

$
0
0
Other than brew or apt-get or python libraries, where does the overall ROS installation sequence install its files? I know a lot goes into ros_catkin_ws But where else? In other words, if I want to do a full cleanup and uninstall of ROS itself (for example because I think that certain parts of the install have gotten corrupted) what would I delete other than pos_catkin_ws?

How to start use ROS with Robotino

$
0
0
I´m new to use ROS, can you help me what´s the thinks that I need to install and how can do

How to avoid installing files like setup.bash more than once?

$
0
0
I use "catkin build" and "catkin config --install". Then each package will install for example setup.bash. How can I avoid that. I would like to only install these files in one package. The reason I would like to do that is that I use CPACK to build a debian package for each ros package. And I get duplicate files in the debian packages.
Viewing all 248 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>