connecting airsim and ros

asked 2021-10-22 04:41:26 -0600

MPR gravatar image

updated 2021-10-22 05:28:54 -0600

i have installed airsim and i want visualise it in RVIZ..How can i do that?

edit retag flag offensive close merge delete

Comments

The instructions are in the repo: https://github.com/microsoft/AirSim/b...

osilva gravatar image osilva  ( 2021-10-22 05:24:46 -0600 )edit

i followed that tutorial.When i tried to do catkin build, i am getting the following error [build] Error: Unable to find source space /home/aimotion/src

MPR gravatar image MPR  ( 2021-10-22 05:29:13 -0600 )edit

Ok but your question then should be on the error and what have you tried so far

osilva gravatar image osilva  ( 2021-10-22 05:31:18 -0600 )edit

when I do catkin build,the following error;

Errors << airsim_ros_pkgs:cmake /home/aimotion/catkin_ws/src/ros/logs/airsim_ros_pkgs/build.cmake.001.log CMake Error at CMakeLists.txt:7 (add_subdirectory): add_subdirectory given source "/home/aimotion/catkin_ws/src/ros/src/airsim_ros_pkgs/../../..//cmake/rpclib_wrapper" which is not an existing directory.

CMake Error at CMakeLists.txt:8 (add_subdirectory): add_subdirectory given source "/home/aimotion/catkin_ws/src/ros/src/airsim_ros_pkgs/../../..//cmake/AirLib" which is not an existing directory.

CMake Error at CMakeLists.txt:9 (add_subdirectory): add_subdirectory given source "/home/aimotion/catkin_ws/src/ros/src/airsim_ros_pkgs/../../..//cmake/MavLinkCom" which is not an existing directory.

MPR gravatar image MPR  ( 2021-10-22 05:38:31 -0600 )edit

Please format the error using 101010 button. I believe there is a workaround as you are missing airsim_node when compiling.

install(TARGETS
    #list of nodes
    airsim_node
    pd_position_controller_simple_node
    DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

Refer to: https://github.com/microsoft/AirSim/p... This is not a ROS issue but an issue with Airsim, I suggest you raise issues in the repo.

osilva gravatar image osilva  ( 2021-10-22 06:24:39 -0600 )edit