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

benngee's profile - activity

2013-06-27 01:46:18 -0500 commented answer ar_pose/ARMarkers.h not found

Thank you for the hints. As soon as i finnished clonig i will try it out. My envirmonment looks like the one you posted above.

Great. it compiled now successful. It looks like the Problem was, that i ran "make" in the AR packages first and it somehow messed up the package

2013-06-19 03:55:09 -0500 received badge  Famous Question (source)
2013-06-18 03:37:15 -0500 received badge  Student (source)
2013-06-18 02:49:54 -0500 commented answer ar_pose/ARMarkers.h not found

the ROS_PACKAGE_PATH contains: opt/ros/fuerte/share:/opt/ros/fuerte/stacks:/home/myname/ros ar_toolkit and mypackage are located there. So the problem may be in the manifestxml. I will edit it in the startpost

2013-06-18 01:53:55 -0500 commented answer ar_pose/ARMarkers.h not found

i got some other includes (pcl and ros) that work. AR and my package are in an extra path i added in my /home/user space because i have to work without superuser rights. The path is included in the ROS_PACKAGE_PATH

2013-06-18 01:37:04 -0500 received badge  Supporter (source)
2013-06-18 01:28:19 -0500 received badge  Editor (source)
2013-06-18 01:24:59 -0500 commented answer ar_pose/ARMarkers.h not found

a comment is restricted to 300 characters, thats why i stated another post. All Informations are now edited in the start post

2013-06-18 01:23:24 -0500 commented answer ar_pose/ARMarkers.h not found

i tried today with the ar_tools package, it results in the same problem

2013-06-17 07:03:18 -0500 received badge  Notable Question (source)
2013-06-16 02:00:40 -0500 received badge  Popular Question (source)
2013-06-15 13:33:10 -0500 answered a question ar_pose/ARMarkers.h not found

Thank you for the replies

The file should be in the correct path, i got some other includes (pcl and ros) that work. AR and my package are in an extra path i added in my /home/user space because i have to work without superuser rights. The path is included in the ROS_PACKAGE_PATH. What makes me wonder is, that the packages can be located with ROS but when compiling it fails...

I will also try tomorrow what happens when the file is placed in the AR /src folder.

2013-06-15 12:19:59 -0500 commented question ar_pose/ARMarkers.h not found

i did not compile examples explicit, i ran rosmake for the packages successfully. Tomorrow i will look for these examples and post here what i found. The idea to copy the msg files will be an "emergency plan" but normally it should work out of the AR package

2013-06-14 03:53:41 -0500 asked a question ar_pose/ARMarkers.h not found

Hi, i am trying to include the ar_pose/ARMarkers.h header in a ROS node with

#include <ar_pose/ARMarkers.h>

I added artoolkit and ar_pose to the dependencies in the manifest file. But when making my package, it says "ar_pose/ARMarkers.h : No such file or directory"

rospack find artoolkit and rospack find ar_pose successfully bring up the path to these packages

I am using fuerte and installed the ar toolkit through ccny_vision first

the ARMarker(s).h is located at ccny_vision/ar_pose/msg_gen/cpp/include/ar_pose. I copied the files to /ccny_vision/ar_pose/include/ar_pose but nothing helped.

update: The files using AR Toolkit should be in the correct path, i got some other includes (pcl and ros) that work. AR and my package are in an extra path i added in my /home/user space because i have to work without superuser rights. The path is included in the ROS_PACKAGE_PATH. What makes me wonder is, that the packages can be located with ROS but when compiling it fails...

update:

I downloaded the bag files today to test if the package itself works correct. The demo_mutli and demo_single do work properly

Also tried now with the newer ar_toolkti package from IHeartEngineering, getting the same error when including

manifest.xml
    <package>
      <description brief="obstacle_detection">

         obstacle_detection

  </description>
  <author>me</author>
  <license>BSD</license>
  <review status="unreviewed" notes=""/>
  link deleted, insufficient karma
  <depend package="pcl"/>
  <depend package="pcl_ros"/>
  <depend package="roscpp"/>
  <depend package="sensor_msgs"/>
  <depend package="artoolkit"/>
  <depend package="ar_pose"/>

</package>

code

#include <ros/ros.h>
#include <ar_pose/ARMarkers.h>

void processing (const ar_pose::ARMarkers::ConstPtr& msg){

    ar_pose::ARMarker ar_pose_marker;

    for(i=0;i<=msg->markers.size();i++){
      ar_pose_marker = msg->markers.at(i);
      std::cout<<"x " << ar_pose_marker.pose.pose.position.x<<st::endl;
      std::cout<<"y " << ar_pose_marker.pose.pose.position.y<<st::endl;
      std::cout<<"z " << ar_pose_marker.pose.pose.position.z<<st::endl;

    }
}


int main (int argc, char** argv)
{
  // Initialize ROS
  ros::init (argc, argv, "locateCamera");
  ros::NodeHandle nh;


  // Create a ROS subscriber
  ros::Subscriber sub = nh.subscribe ("input", 1, processing);

  ros::spin ();
}

What do i make wrong? Thanks for helping me.

Update:

Looks like the problem is solved now. When compiling the ARtoolkit packages indirect through my ros package, the ARMarkers.h gets found. So just cloning the AR Packages but not running make or rosmake in the folders and instead let the own package call this when rosmaking solved this problem.

Thank you very much