Closed EvelynM7 closed 2 years ago
Hi @EvelynM7,
It's hard to say what is wrong, but what I do see is that you might modified the files a bit differently than https://github.com/microsoft/AirSim/pull/4509, otherwise your topic would be /airsim_node/Drone1/Test0_Scene/image
and not /airsim_node/Drone1/Test0_0/image
.
It seems like you modifed the files manullay, I suggest you using https://github.com/microsoft/AirSim/pull/4509 as is, with gh pr checkout 4509
and report back.
Hello @alonfaraj ,
I'm not sure what you mean by gh pr checkout 4509
. I tried that command both in Git Bash and Ubuntu, but it didn't work. Could you elaborate, please?
I did go back and copy directly the changes made in #4509 as listed in {https://github.com/microsoft/AirSim/pull/4509/files#}. I also closely checked the spacing, spelling, etc., and mine is now identical to the one listed there. I am still having to manually input the topic for the camera as shown in the images attached below. I think this is where you are saying my topic should be different. I believe I followed what was written out as Test0_0,
but Test0_Scene
is what shows up in your topic list so I've included screenshots of that inputted topic. You can see that I still don't have the frames (even when all are enabled) and topics you had in #4509 as well. Why could this be, and how do I fix it? Are you using a different rviz file? Am I missing a step?
gh
is github cli so you can use it to checkout a branch from a fork easier - https://cli.github.com/.
I'm using a standard installation of ROS2 galactic included rviz2.
Is airsim_node
showing something? error/warning?
You topic list doesn't make sense, make a test:
/parameter_events
and /rosout
)airsim_node
If not - it seems like your node crashed or didn't connect to the simulation.
There's an info comment when running airsim_node
: [static_transform_publisher-1] [INFO] [1657814690.091340820] [ned_to_enu_pub]: Spinning until killed publishing transform from 'world_ned' to 'world_enu'
.
Following your steps gives me the below screenshot (the last topic command that also includes /tf_static [tf2_msgs/msg/TFMessage]
is the one after starting airsim_node
).
Do you run the simulation on the same machine? Your node isn't connecting the simulation
Yes, we do. Do you have any suggestions on how to fix this or test why this might be happening?
You should specify the host ip which run the simulation.
ros2 launch airsim_ros_pkgs airsim_node.launch.py host:=<your_simulation_host_ip>
Is the simulation host ip different then the computer IP address?
No. It's the ip address of your computer running the simulation
Thank you so very much! That did seem to connect properly.
I do have a couple more questions if you don't mind:
compressed
, compressedDepth
, and theora
(though this looks like some sort of plugin or package). Should I have these as well or is it fine that they are not showing up for the topic command?
Bug report
What's the issue you encountered?
I have now tried many processes of setting up Ubuntu, ROS, RVIZ, and AirSim as well as different edits to the airsim_ros_wrapper code. The following steps are for the setup that has worked best for me, but I am still running into at least one error getting RVIZ to connect properly with AirSim showing the camera.
As can be seen in the images attached below, this gave me Status: Warn like #4509 The error for Camera Info says "No CameraInfo received on [/airsim_node/Drone1/Test0_0/camera_info]. Topic may not exist."
Both @zimmy87 and @alonfaraj also showed a screenshot with Frames in #4509. I only have world_enu and world_ned as options in RVIZ. I think this and the lack of topics could be causing the error. How do I fix both of these? I've included the RVIZ screenshot and the list of topics from the terminal (there are some missing, I think, when compared to @alonfaraj's list).
Any assistance would be greatly appreciated. Thank you!
Settings
How can the issue be reproduced?
ROS2 Setup from scratch: (https://docs.ros.org/en/galactic/Installation/Ubuntu-Install-Debians.html#install-ros-2-packages)
Launching RVIZ:
RVIZ Steps/Edits:
Include full error message in text form
In RVIZ: "Status: Warn". The error for Camera Info also says "No CameraInfo received on [/airsim_node/Drone1/Test0_0/camera_info]. Topic may not exist."