Ask Your Question

ncr7's profile - activity

2017-06-13 06:47:54 -0500 received badge  Nice Answer (source)
2016-08-08 00:35:44 -0500 marked best answer Catkin_Make Config file Error: ros_control and ros_configuration in Hydro

I'm not sure what the issue is here. I have installed everything from ROS Hydro Installation, I have Gazebo 1.9 installed correctly and installed the gazebo_ros_pkg files.

I can roscd to both ros_control and ros_controllers... but I can't seem to make a catkin_pkg that requires these packages?

Here is the error I am getting,

Make Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
  Could not find a configuration file for package ros_control.

  Set ros_control_DIR to the directory containing a CMake configuration file
  for ros_control.  The file will have one of the following names:


Call Stack (most recent call first):
  baxter_control/CMakeLists.txt:7 (find_package)

CMake Error at /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
  Could not find a configuration file for package ros_controllers.

  Set ros_controllers_DIR to the directory containing a CMake configuration
  file for ros_controllers.  The file will have one of the following names:


Call Stack (most recent call first):
  baxter_control/CMakeLists.txt:7 (find_package)

Any ideas as to what would cause this problem?

2016-04-27 01:41:44 -0500 marked best answer Action Client Results

So I've been looking at action clients now for a while. I have used these before, but never really used the results from the action servers that I've made in the past... but now I made a server that sends back results, which I get no errors from during compile time, but I haven't figured out how to use them on the client side without causing the build to fail.

ik_solve_msgs::IK_SolveActionResult ik_solve_results;
ik_solve_results = m_ikclient.getResult();

fails... I've tried as many ways as I can to see if I can get this working, but haven't had any success.

error message I'm getting,

error: no match for ‘operator=’ in ‘ik_solve_results = actionlib::SimpleActionClient<ActionSpec>::getResult() [with ActionSpec = ik_solve_msgs::IK_SolveAction_<std::allocator<void> >, actionlib::SimpleActionClient<ActionSpec>::ResultConstPtr = boost::shared_ptr<const ik_solve_msgs::IK_SolveResult_<std::allocator<void> > >, typename ActionSpec::_action_result_type::_result_type = ik_solve_msgs::IK_SolveResult_<std::allocator<void> >]()’

Does anyone actually know how to get the results back and use them?

all I see in the examples only uses the results to tell if the action server has finished, which I use,

bool finished_before_timeout = m_ikclient.waitForResult(ros::Duration(30.0));

any help would be greatly appreciated!

2016-03-21 04:49:51 -0500 received badge  Good Answer (source)
2015-12-08 04:14:43 -0500 received badge  Nice Answer (source)
2015-11-02 10:14:56 -0500 received badge  Necromancer (source)
2015-07-16 13:13:52 -0500 received badge  Nice Question (source)
2014-08-18 16:23:26 -0500 received badge  Famous Question (source)
2014-08-14 11:19:31 -0500 received badge  Enlightened (source)
2014-02-24 11:57:15 -0500 received badge  Famous Question (source)
2014-02-18 17:48:24 -0500 answered a question Roslaunch cannot launch node of type: gazebo

maybe instead of,

 <node name="spawn_robot" pkg="gazebo" type="spawn_urdf_model" args="-urdf -param robot_description -z 0.1 -model robot_model" respawn="false" output="screen" />

try something like this,

<!-- Spawn a robot into Gazebo -->
<node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-file $(find baxter_description)/urdf/baxter.urdf -urdf -z 1 -model baxter" />

there is a more detailed tutorial on gazebo's website,

if you have an urdf.xacro there is another method of importing into gazebo also listed in the tutorial linked above.

2014-02-18 17:24:20 -0500 answered a question Catkin and eclipse

Not sure if this will help anyone in particular but I've been trying to fix these link errors off and on for about a week now so I thought I'd share what I've found.

Ubuntu 12.04, ROS Hydro, Catkin, and Eclipse Indigo 3.7.2

So I've been trying to get my code into my Eclipse IDE. I ran the set up described in the IDE tutorial here,

I then imported as the tutorial asked but got all sorts of link error issues... kept deleting the project and retrying the steps and checking to make sure that all components of C++ were installed for eclipse indigo. Tried manually adding libraries, but I was getting simple link errors like std::string.

Nothing in here really seemed to help with link errors. Until I noticed fivef and Quizzarex's answers here. I then went to workspace/src folder and ran the following,

cmake -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_ECLIPSE_MAKE_ARGUMENTS=-j8

Then in eclipse I imported the existing project from the workspace/src folder.

This worked much nicer as far as removing unnecessary clutter from your Project Explorer in Eclipse since it added only my catkin projects as they are and not my all my project build folders along with a separate linked [Source directories] directory. Although there probably is a solution to that using the prior method from the build folder.

To my surprise this method also removed my linking errors.

If your still having errors you may want to try using Eclipse Kepler.

I started using and noticed a new feature called "Re-resolve Unresolved Includes". This is actually when I noticed that my Workspace/src folder worked after running "Re-resolve Unresolved Includes" in Kepler... but I've since tried remaking the Eclipse Project and importing, as I mentioned above from the workspace/src directory, and haven't been able to reproduce the unresolved link errors.

Hope this helps, I guess its kind of a redundant post to fivef's and Quizzarex's answers but I was finally happy to see no link errors and thought I'd mention my solution.

2014-02-13 10:22:57 -0500 commented answer Catkin_Make Config file Error: ros_control and ros_configuration in Hydro

I mean the CMakeLists.txt that is in the package you created using for example; 'catkin_create_pkg beginner_tutorials ros_control ros_controllers', not the CMakeLists.txt's in your ros_control and ros_controller packages. I'm not sure this is your issue though if your not making a depends package.

2014-02-05 00:48:51 -0500 received badge  Famous Question (source)
2014-01-28 17:27:59 -0500 marked best answer Spawning Objects in RVIZ

Is there a simple way to place objects in RVIZ? I am just trying to use the position of a detected object in a point cloud and spawn an object in that pose. But so far I haven't found a way to even spawn simple objects... Sphere, Cylinder, Box. Do I have to create a URDF file/launch file for this?

I have seen this Tutorial. But I get no such file or directory...

2014-01-28 17:27:58 -0500 marked best answer mapping_msgs/CollisionObject.h: No such file or directory

I'm trying to add an object to my RVIZ scene, from this tutorial.

Would anyone know why using,

#include <mapping_msgs/CollisionObject.h>

would not be available?

2014-01-28 17:27:18 -0500 marked best answer ROS camera snapshot save as jpg

I'm working to detect circles using cv.houghcirles, which I have working... but as soon as the camera moves cv.houghcircles crashes. So my next plan was to take snap shots and save the images run cv.houghcircles on the images to get point location back.

So long story short, I need a way to save a ROS gazebo camera as a jpg, bmp, etc.

any help would be greatly appreciated!

2014-01-28 17:27:16 -0500 marked best answer Launching Objects in Gazebo with ROS Fuerte

So I've been able to load objects in the past by using the following example code,

<!-- Blue Bar Cylinder -->
<model:physical name="cyl_model">
    <xyz>.6 0.4 1</xyz>
    <rpy>0 0 0</rpy>
    <body:cylinder name="cyl_body">
      <xyz>0 0 0</xyz>
      <rpy>0 90 90</rpy>
      <geom:cylinder name="cyl_geom">
        <xyz>0 0 0</xyz>
        <size>0 0</size>           
          <size>0.03 0.03 .2</size>

Although now this doesn't work with ROS fuerte... I also tried the example in the Gazebo tutorials

What am I missing here? I'm not sure what has changed with loading objects into the gazebo simulator.

2014-01-28 17:26:52 -0500 marked best answer Problem with Deleting Models

I would like to spawn models and then delete them while running my python algorithm... but as I do I am only able to spawn the models, and delete the handles of these models the actual model stays in the gazebo world.

I'm using the following code to spawn the model,

os.system("rosrun gazebo spawn_model -file /opt/ros/electric/stacks/simulator_gazebo/gazebo_worlds/objects/small_sphere_1.urdf -gazebo -model p%s -x %s -y %s -z %s" %(index, particles[index,0], particles[index,1], particles[index,2]))

and using this code to delete the model,

os.system("rosservice call gazebo/delete_model '{model_name: p%s}'" %(index))

Is there anyway to clear the gazebo world of these objects using another command? These commands work the way I expect when I directly type them into the terminal but not when I use os.system()

2014-01-28 17:26:42 -0500 marked best answer spawning spheres in gazebo as simulated point cloud

So I'm working on spawning spheres in gazebo to simulate point clouds for probabilities. I have been able to spawn objects with the command line,

rosrun gazebo spawn_model -file /opt/ros/electric/stacks/simulator_gazebo/gazebo_worlds/objects/simple_box.urdf -urdf -x 1.18 -y .91 -z 1.549 -model box1

but it seems when spawning objects this way you can't make them static, or resize the objects.

Is there a way to spawn objects with the ability to make them unaffected by gravity and resize-able?

2014-01-27 05:02:30 -0500 received badge  Popular Question (source)
2014-01-27 05:02:30 -0500 received badge  Notable Question (source)
2013-11-30 15:20:21 -0500 received badge  Good Answer (source)
2013-11-30 15:20:20 -0500 received badge  Good Question (source)
2013-10-11 21:00:19 -0500 commented answer Updating to PCL 1.7 in ROS Fuerte

might be a linking issue, try adding these lines to your cmake. include_directories(/usr/include/vtk-5.8) target_link_libraries(<your_executable_node> ${PCL_LIBRARIES} boost_system Also, maybe check your depends packages in your manifest.xml.

2013-10-03 20:15:30 -0500 answered a question After update: getting error related to ROS_ROOT and rosbash

I was just getting this error also,

bash: /share/rosbash/rosbash: No such file or directory

I actually just reinstalled groovy, but pointed it to an old catkin_ws in my bashrc. I ended up doing a catkin_make in my catkin_ws and it cleaned up the error. I am not sure if this will help, but saw your post as I was trying to figure out my issue, so figured I'd let you know of a potential fix to your problem.

Hope this helps!

2013-10-03 18:48:15 -0500 commented answer Updating to PCL 1.7 in ROS Fuerte

I have used pcl17, but haven't tried detection of people yet. Sounds like an interesting thing to get working though, if I get time I'll try testing it. CarolineQ might have some answers though,

2013-09-30 19:18:57 -0500 commented answer Catkin_Make Config file Error: ros_control and ros_configuration in Hydro

Not sure really why REQUIRED COMPONENTS portion in the CMakeLists.txt, I decided to test not using it because I know packages are also linked through package.xml. I figure there is some sort of linking error, but that is just a hypothesis... haven't really looked into it.

2013-09-30 01:25:55 -0500 received badge  Self-Learner (source)
2013-09-27 00:22:53 -0500 received badge  Famous Question (source)
2013-09-24 12:23:28 -0500 commented answer Updating to PCL 1.7 in ROS Fuerte

Yes, it takes awhile to build.

2013-09-23 21:22:59 -0500 received badge  Nice Question (source)
2013-09-23 21:22:50 -0500 received badge  Stellar Question (source)
2013-09-16 23:22:28 -0500 received badge  Notable Question (source)