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

Gazebo 4 Contact sensor issue using URDF

$
0
0
I am having an issue after I upgraded to Gazebo4 from Gazebo2. My reason to upgrade was to have the ability to use multiple contact sensor which apparently is only available 4.1 and higher. I am using URDF instead of SDF since I do plan on using the description for Rviz as well. My environment is: Ubuntu 14.04; Gazebo 4, Ros Indigo. I am using the "libgazeborosbumper.so" plugin. Here is my code: true10left_bump_link_collisionlside_bumperlside_bump_link The links and the joints work just fine and like I said, this code worked perfectly fine in Gazebo 2. When I echo the rostopic "lside_bumper", it shows that it never makes a contact. When I did this on Gazebo2 it gave me all the values when the contact was made. Has anybody experienced anything similar or anything obvious I am missing?

PCL + ROS Indigo: include not found if I use catkin_package()

$
0
0
Hi, I have installed ROS Indigo under Ubuntu 14.04. I am trying to create a ROS package that uses the PCL library. I am using QtCreator as IDE. My main problem is that QtCreator can't find the PCL headers. For example: #include Therefore it does not autocomplete anything related to PCL. However, it DOES compile if I have PCL code, so I don't know where the error is. This is my CMakeLists.txt: cmake_minimum_required(VERSION 2.8.3) project(data_visualizer) find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs visualization_msgs tf ) find_package(PCL REQUIRED) include_directories( ${catkin_INCLUDE_DIRS} ) include_directories(include ${PCL_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS} ) add_definitions(${PCL_DEFINITIONS}) catkin_package() file(GLOB_RECURSE SOURCES src/*.cpp src/*.h) add_executable(${PROJECT_NAME} ${SOURCES}) target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${PCL_LIBRARIES}) And my package.xml: data_visualizer0.0.0The data_visualizer packageworkTODOcatkinroscpprospystd_msgsvisualization_msgstflibpcl-all-devroscpprospystd_msgsvisualization_msgstflibpcl-all Hint: I notice that if I comment out the line "**catkin_package()**" from the CMakeLists.txt, then QtCreator is able to locate the PCL headers. Does this sound familiar? Any ideas on how to fix this? Thanks a lot!

Kinect model 1414 and ros indigo

$
0
0
I am using ros indigo in ubuntu 14.04 LTS. I am using a Kinect model 1414, for using it with my robot. I am using kinect for the first time. Can some please tell, how to get it installed and running. I thought i need to use OpenNi but some Q&A said OpenNi has errors and has expired. Few blogs said use freenect. All these libraries are having there own versions. Can some one tell me what exactly I will need to get my Kinect installed with my ros. Thanks in advance.

problem compiling ethzasl_icp_mapping on indigo

$
0
0
Hi, I'm trying to compile the package `ethzasl_icp_mapping` on indigo and I get this error: *** No rule to make target `/tmp/buildd/ros-indigo-libpointmatcher-1.2.2-0trusty-20140805-1228/obj-x86_64-linux-gnu/libpointmatcher.so', needed by `/datos/ros_ws/ethz-asl/devel/lib/libpointmatcher_ros.so'. Stop. make[1]: *** [ethzasl_icp_mapping-indigo_devel/libpointmatcher_ros/CMakeFiles/pointmatcher_ros.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... I'm using Ubuntu 14.04 and ROS indigo. I've also installed the packages `ros-indigo-libpointmatcher` and `ros-indigo-libnabo`. Please, help!!

Compile failed when compiling ros_control

$
0
0
I have had ROS (indigo) running on a BeagleBone Black (running debian), by compiling everything, following this link: http://wiki.ros.org/indigo/Installation/Debian I then tried to compile in ros_control (following all the steps at the bottom of the page) rosinstall_generator ros_comm ros_control --rosdistro indigo --deps --wet-only --exclude roslisp --tar > indigo-custom_ros.rosinstall The compile failed when trying to compile joint_limit_interface: ==> Processing catkin package: 'joint_limits_interface' ==> Building with env: '/opt/ros/indigo/env.sh' ==> cmake /home/debian/ros_catkin_ws/src/ros_control/joint_limits_interface -DCATKIN_DEVEL_PREFIX=/home/debian/ros_catkin_ws/devel_isolated/joint_limits_interface -DCMAKE_INSTALL_PREFIX=/opt/ros/indigo -DCMAKE_BUILD_TYPE=Release -G Unix Makefiles in '/home/debian/ros_catkin_ws/build_isolated/joint_limits_interface' CMake Error at CMakeLists.txt:4 (find_package): By not providing "Findurdfdom.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "urdfdom", but CMake did not find one. Could not find a package configuration file provided by "urdfdom" with any of the following names: urdfdomConfig.cmake urdfdom-config.cmake Add the installation prefix of "urdfdom" to CMAKE_PREFIX_PATH or set "urdfdom_DIR" to a directory containing one of the above files. If "urdfdom" provides a separate development package or SDK, be sure it has been installed. Looking around, there seems to be some talk on this, but I am still confused on how to proceed with the build. Anyone have any step by step instructions on how to proceed? Thanks!

Installing rosbridge indigo on OSX

$
0
0
brew install ros-indigo-rosbridge-suite Errors with "no available formulae" Is there a way to bring up rosbridge on OSX (yosemite) ? Thanks!

cmake error, poco was not found, Raspberry Pi, ROS Indigo

$
0
0
Hi all, I'm new to ROS and having trouble trying to install everything on an RPI. I'm following this link here - http://wiki.ros.org/ROSberryPi/Installing%20ROS%20Indigo%20on%20Raspberry%20Pi I'm up to 2.3 Building the catkin Workspace, and when running the command "sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/indigo" I get the following error: CMake Error at /opt/ros/indigo/share/cmake_modules/cmake/Modules/FindPoco.cmake:186 Messgae reads: Poco was not found. Set the Poco_INCLUDE_DIR cmake cache entry to the top-level directories. E.g /usr/local/include or c:\poco\include\poco-1.3.2 I don't want to start messing about with obscure files looking for something as it's taken several days to get to this point and i don't want to start over if i can avoid it. Any help would be greatly appreciated. Thanks.

Multiple SimpleActionServer member variables

$
0
0
I am building a AI module for a robot. The module will provide two actions, so I've been learning about actionlib through the [tutorials](http://wiki.ros.org/actionlib_tutorials). I implemented the [first tutorial](http://wiki.ros.org/actionlib_tutorials/Tutorials/SimpleActionServer%28ExecuteCallbackMethod%29) and got it working nicely in my application. My current approach for one action is roughly as follows. The action server is started in the class constructor. class RobotAI { public: RobotAI(std::string name); ~RobotAI(void); void executeInspectAreaCB(const robot_ai::InspectAreaGoalConstPtr &goal); private: ros::NodeHandle nh_; // Action servers and messages that are used to published feedback/result actionlib::SimpleActionServer inspect_as_; std::string inspect_action_name_; robot_ai::InspectAreaFeedback inspect_feedback_; robot_ai::InspectAreaResult inspect_result_; }; However, now that I'm implementing *two* actions and I would like to manage them within a single robot AI class, I was wondering what would be the best way of achieving this? Should I just add another `SimpleActionServer` to my current class to handle the other action? Or should I make a class as implemented in the first tutorial for both actions and include them as member variables for my AI class? I am using ROS Indigo on Ubuntu 14.04.

apt-get doesn't find ROS packages at all

$
0
0
I've tried running `sudo apt-get install ros-indigo-ros-tutorials ros-indigo-geometry-tutorials ros-indigo-rviz ros-indigo-rosbash ros-indigo-rqt-tf-tree` but it outputs: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package ros-indigo-ros-tutorials E: Unable to locate package ros-indigo-geometry-tutorials E: Unable to locate package ros-indigo-rviz E: Unable to locate package ros-indigo-rosbash E: Unable to locate package ros-indigo-rqt-tf-tree `apt-get` seems to be able to download other things such as `nmap` but the ROS packages simply are un-locatable. Any ideas? I'm pretty new to Raspbian (I'm on a RPi) and feel a bit at a loss. Thanks!

how to detect legs with leg_detector and urg_node with visualisation in rviz

$
0
0
i've started the leg_detector and the urg_node with a launch file: How can start the leg detection right and how can i visualize them in rviz? i can see with rostopic echo /scan that the urg_node is publishing the measures and i can visualize them in rviz. The visualization_marker from leg_detector doesn't publish anything. i get the warning in the console: > [ WARN] [1448009011.893469224]: MessageFilter [target=odom_combined ]: Dropped 100.00% of messages so far. Please turn the [ros.leg_detector.message_notifier] rosconsole logger to DEBUG for more information. Thanks in advance

perception_pcl on RPI2

$
0
0
Hi, I've been developing a cheap scanning LIDAR unit, that I'm trying to integrate on a custom robot that uses a RPI2 running ROS Indigo as its controller. I developed the hardware on a PC running Ubuntu. Now that I want to integrate it, I'm finding that I cannot build the perception_pcl packages, due to a dependency with PCL. The RPI2 is running Raspbian Jessie. Perception_pcl lists libpcl-all and libpcl-all-dev as dependencies. The closest matching packages in the Raspbian repo is libpcl1.7 and libpcl1.7-dev. Would editing the perception_pcl source to depend on libpcl1.7 & libpcl1.7-dev fix the issue? Otherwise, where would I find the source for libpcl-all & libpcl-all-dev? Thanks in advance, Ben

Error when simulating baxter in gazebo

$
0
0
When I launch `baxter_world` I get the following errors in order. I'm struggling with fixing these. [ INFO] [1448157761.777717835]: getting bounds for joint: [right_s0] ERROR: cannot launch node of type [baxter_sim_hardware/baxter_emulator]: can't locate node [baxter_emulator] in package [baxter_sim_hardware] [INFO] [WallTime: 1448157762.755704] [0.000000] Controller Spawner: Waiting for service controller_manager/load_controller Warning [parser_urdf.cc:1010] multiple inconsistent exists due to fixed joint reduction overwriting previous value [true] with [false]. Segmentation fault (core dumped) [gazebo_gui-3] process has died [pid 8359, exit code 139, cmd /opt/ros/indigo/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/home/veyorokon/.ros/log/1c64b260-90bd-11e5-b392-b8e85645ebf8/gazebo_gui-3.log]. log file: /home/veyorokon/.ros/log/1c64b260-90bd-11e5-b392-b8e85645ebf8/gazebo_gui-3*.log [gazebo-2] process has died [pid 8353, exit code 139, cmd /opt/ros/indigo/lib/gazebo_ros/gzserver -e ode /home/veyorokon/ros/baxter_ws/src/baxter_simulator/baxter_gazebo/worlds/baxter.world __name:=gazebo __log:=/home/veyorokon/.ros/log/1c64b260-90bd-11e5-b392-b8e85645ebf8/gazebo-2.log]. log file: /home/veyorokon/.ros/log/1c64b260-90bd-11e5-b392-b8e85645ebf8/gazebo-2*.log

Rosbridge only one way on my OSX

$
0
0
This probably has the same underlying cause as the problem I posted in http://answers.ros.org/question/221048/roslibjs-dont-get-goal-result-on-client/, but now I have a simpler way to reproduce the problem and that uses no code from me and some extra clues. I'm running OSX Yosemite, ROS Indigo, Rosbridge with ROSlibjs using the Chrome Browser. I can call a service from the browser, and it successfully executes on the server, but I can't get any information back to the browser. The simplest way I can reproduce this is: In a terminal window: $ roscore In another terminal window: $ rosrun rospy_tutorials add_two_ints_server (in the tutorial) In a third terminal window: $ roslaunch rosbridge_server rosbridge_websocket.launch (in the tutorial) From the web page: http://wiki.ros.org/roslibjs/Tutorials/BasicRosFunctionality copy the whole page HTML into a file, say, simple.html Here is is:

Simple roslib Example

Check your Web Console for output.

In Chrome, browse: file:///your_dir/simple.html Open the Chrome Development tools: I see in the console: `"Connected to websocket server"` (This is good) but there's nothing else printed in the console (this is bad) as the JS code indicates it should print out: Result for service call on /add_two_ints: 3 In the rosrun terminal window, I see printed out: Returning [1 + 2 = 3] Indicating that the service request made it to the server and the server did the computation. Additional info that perhaps provides some clues: $ rosnode list /add_two_ints_server /rosapi /rosbridge_websocket /rosout $ roswtf Loaded plugin tf.tfwtf Package: rospy_tutorials ================================================================================ Static checks summary: No errors or warnings ================================================================================ Beginning tests of your ROS graph. These may take awhile... analyzing graph... ... done analyzing graph running graph rules... ... done running graph rules Online checks summary: Found 1 warning(s). Warnings are things that may be just fine, but are sometimes at fault WARNING The following node subscriptions are unconnected: * /rosbridge_websocket: * /listener $ rostopic pub /listener std_msgs/String "Hello, World" doesn't cause Received message on /listener: "Hello, World" to be printed out in the Chrome console, as indicated in the tutorial. $ printenv | grep ROS ROS_ROOT=/opt/ros/indigo/share/ros ROS_PACKAGE_PATH=/Users/Fry/ros_ws/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks ROS_MASTER_URI=http://localhost:11311 ROSLISP_PACKAGE_DIRECTORIES=/Users/Fry/ros_ws/devel/share/common-lisp ROS_DISTRO=indigo ROS_ETC_DIR=/opt/ros/indigo/etc/ros $ cat /etc/hosts 127.0.0.1 localhost macbook-pro-2.home My guess is this has something to due with my particular ROS installation, esp the Rosbridge package which is difficult to install on OSX since brew is not supported. I'd be curious if running this on Ubuntu worked. Any debugging hints greatly appreciated. PS: chrome dev tool/Network/WS for localhost indicates that messages are going out from the browser, but none are coming into the browser.

How to install robot_upstart?

$
0
0
This is a total newbie question but I have absolutely no idea how to install a package from the wiki. http://wiki.ros.org/robot_upstart I've tried downloading it from git and running install.py but when I run `$rosrun robot_upstart ` I get the error package 'robot_upstart' not found. I don't really understand how to use rosinstall or if this is even the right place to use it. What should I be doing to install a package? Please assume I know nothing :) Thank you!!

ROS Indigo Update leading to "instance of 'ros::serialization::StreamOverrunException'"

$
0
0
I did an "apt-get update && apt-get upgrade" today, and it looked like it updated the Indigo packages (someone correct me if I am wrong in assuming an update was pushed recently). In any case, after recompiling one of my packages with no changes having been made, my node keeps crashing throwing the following exception: terminate called after throwing an instance of 'ros::serialization::StreamOverrunException' what(): Buffer Overrun Is there a bug in the update? No changes were made on my end. How do I revert to the previous version of Indigo? Thanks, Scott

Setting up Catkin Baxter Environment Error - INDIGO

$
0
0
Ubuntu 14.04.2 LTE I'm trying to setup a workspace to simulate Baxter in gazebo with Ros Indigo. When I run catkin_make in my workspace i get the following error: [100%] Building CXX object baxter_simulator/baxter_sim_hardware/CMakeFiles/baxter_emulator.dir/src/baxter_emulator.cpp.o ... ... [100%] Building CXX object baxter_simulator/baxter_sim_hardware/CMakeFiles/baxter_emulator.dir/src/baxter_emulator.cpp.o Built target kinematics /home/veyorokon/ros/baxter_ws/src/baxter_simulator/baxter_sim_hardware/src/baxter_emulator.cpp: In member function ‘void baxter_en::baxter_emulator::publish(const string&)’: /home/veyorokon/ros/baxter_ws/src/baxter_simulator/baxter_sim_hardware/src/baxter_emulator.cpp:284:21: error: ‘imread’ is not a member of ‘cv’ cv_ptr->image = cv::imread(img_path, CV_LOAD_IMAGE_UNCHANGED); ^ make[2]: *** [baxter_simulator/baxter_sim_hardware/CMakeFiles/baxter_emulator.dir/src/baxter_emulator.cpp.o] Error 1 make[1]: *** [baxter_simulator/baxter_sim_hardware/CMakeFiles/baxter_emulator.dir/all] Error 2 make: *** [all] Error 2 Invoking "make -j4 -l4" failed This error has been haunting me for the past three days...

Is it possible to compile ros c++ package to jars library using catkin?

$
0
0
Hello, i have to create a robot_state_publisher rosjava package. So i am thinking whether there is a fast way to do this. Any suggestions will be grateful. Thank you

Indigo ros_core source compile error in actionlib_msgs

$
0
0
I'm compiling indigo-ros_core from source on Debian and I'm getting stuck at actionlib_msgs with the following error:<== Finished processing package [43 of 63]: 'std_msgs' ==> Processing catkin package: 'actionlib_msgs' ==> Building with env: '/opt/ros/indigo/env.sh' ==> cmake /home/crunchex/uproot/iso_catkin_ws/src/common_msgs/actionlib_msgs -DCATKIN_DEVEL_PREFIX=/home/crunchex/uproot/iso_catkin_ws/devel_isolated/actionlib_msgs -DCMAKE_INSTALL_PREFIX=/opt/ros/indigo -DCMAKE_BUILD_TYPE=Release -G Unix Makefiles in '/home/crunchex/uproot/iso_catkin_ws/build_isolated/actionlib_msgs' -- Using CATKIN_DEVEL_PREFIX: /home/crunchex/uproot/iso_catkin_ws/devel_isolated/actionlib_msgs -- Using CMAKE_PREFIX_PATH: /opt/ros/indigo -- This workspace overlays: /opt/ros/indigo -- Using PYTHON_EXECUTABLE: /usr/bin/python -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/crunchex/uproot/iso_catkin_ws/build_isolated/actionlib_msgs/test_results -- Found gtest sources under '/usr/src/gtest': gtests will be built -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.6.16 -- Using these message generators: gencpp;genlisp;genpy CMake Error at /home/crunchex/uproot/iso_catkin_ws/build_isolated/actionlib_msgs/cmake/actionlib_msgs-genmsg.cmake:3 (message): Could not find messages which '/home/crunchex/uproot/iso_catkin_ws/src/common_msgs/actionlib_msgs/msg/GoalStatusArray.msg' depends on. Did you forget to specify generate_messages(DEPENDENCIES ...)? Cannot locate message [Header] in package [std_msgs] with paths [['/home/crunchex/uproot/iso_catkin_ws/devel_isolated/std_msgs/share/std_msgs/cmake/../msg']] Call Stack (most recent call first): /home/crunchex/uproot/iso_catkin_ws/devel_isolated/genmsg/share/genmsg/cmake/genmsg-extras.cmake:304 (include) CMakeLists.txt:12 (generate_messages) At this point, I've already finished processing std_msgs, which is where the Header message is defined. So I'm not really sure why it would be failing at this point. Anyone have a clue?

Help Building Custom BAXTER grippers

$
0
0
I need help figuring out these two errors. They are both related, so solving one should solve the other. I'm building custom grippers for Baxter in Ros-Indigo (ubuntu 1404.2). I've built a custom URDF file along with a custom launch file. This error is the last error I have to figure out. [baxter_sim_kinematics_left-6] process has died [pid 27862, exit code -11, cmd /home/veyorokon/ros/baxter_ws/devel/lib/baxter_sim_kinematics/kinematics left __name:=baxter_sim_kinematics_left __log:=/home/veyorokon/.ros/log/9cdf8088-940e-11e5-9ec4-b8e85645ebf8/baxter_sim_kinematics_left-6.log]. log file: /home/veyorokon/.ros/log/9cdf8088-940e-11e5-9ec4-b8e85645ebf8/baxter_sim_kinematics_left-6*.log [baxter_sim_kinematics_right-7] process has died [pid 27921, exit code -11, cmd /home/veyorokon/ros/baxter_ws/devel/lib/baxter_sim_kinematics/kinematics right __name:=baxter_sim_kinematics_right __log:=/home/veyorokon/.ros/log/9cdf8088-940e-11e5-9ec4-b8e85645ebf8/baxter_sim_kinematics_right-7.log]. log file: /home/veyorokon/.ros/log/9cdf8088-940e-11e5-9ec4-b8e85645ebf8/baxter_sim_kinematics_right-7*.log

how to detect specific objects?

$
0
0
I want to detect specific objects. i played around with leg_detector and rviz and now i want to detect a specific object like different cases. What is the best way to continue? I though i would first use something like a kalman filter to create a cleaner map, and than starting a better segmentation? I want to recognize different cases especially from different positions. Is there already a package which i can use? Or should I choose an other way? Thanks in advance
Viewing all 2203 articles
Browse latest View live


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