Imu_attitude_to_tf_node Error: 'command not found'
I am attempting to convert data from the Pixhawk IMU to a transform broadcast using the "hector_imu_attitude_to_tf" node from the Hector SLAM repository (found at: link text ) However, when I run the file using:
rosrun hector_imu_attitude_to_tf imu_attitude_to_tf_node.cpp
I get the following error message, with "command not found" listed 5 times, as well as 2 other errors:
/hector_imu_attitude_to_tf/src/imu_attitude_to_tf_node.cpp: line 5: std::string: command not found
/home/luengr/a_ws/src/hector_slam/hector_imu_attitude_to_tf/src/imu_attitude_to_tf_node.cpp: line 6: std::string: command not found
/home/luengr/a_ws/src/hector_slam/hector_imu_attitude_to_tf/src/imu_attitude_to_tf_node.cpp: line 7: tf::TransformBroadcaster*: command not found
/home/luengr/a_ws/src/hector_slam/hector_imu_attitude_to_tf/src/imu_attitude_to_tf_node.cpp: line 8: tf::StampedTransform: command not found
/home/luengr/a_ws/src/hector_slam/hector_imu_attitude_to_tf/src/imu_attitude_to_tf_node.cpp: line 9: tf::Quaternion: command not found
/home/luengr/a_ws/src/hector_slam/hector_imu_attitude_to_tf/src/imu_attitude_to_tf_node.cpp: line 12: typedef: command not found
/home/luengr/a_ws/src/hector_slam/hector_imu_attitude_to_tf/src/imu_attitude_to_tf_node.cpp: line 13: syntax error near unexpected token `}'
/home/luengr/a_ws/src/hector_slam/hector_imu_attitude_to_tf/src/imu_attitude_to_tf_node.cpp: line 13: ` namespace tf { typedef btMatrix3x3 Matrix3x3; }'
It has been suggested to me that this is a dependencies issue, however i have used Rosdep to install all dependencies with no luck. Is there something I am not seeing? I assume it is something I have not set up properly as I assume the code from the Hector-SLAM repository is working fine. Many Thanks