Closed shreyash-99 closed 1 year ago
Hi @shreyash-99
I don't think we support Mac OS out of the box, but seeing from the error logs, it seems to fail on trying to use localhost
. Could you try to use the host
argument to 127.0.0.1 or the assigned ip when launching the fsds_ros_bridge?
Hey @wouter-heerwegh Tried this suggestion by changing the argument of host from localhost to 127.0.0.1 in the fsds_ros_bridge.cpp and the fsds_ros_bridge.launch files. But still receiving the same error when running fsds ros bridge. running ros noetic on ubuntu 20.04
@MohakVyas, are you using the v2.1.0 executable with the latest code? If so, can you try to run git checkout v2.1.0
and rebuild and install Airsim?
Hi @wouter-heerwegh and @MohakVyas
I am new to the simulator (v2.1.0, Ubuntu 22.04 with ros2 humble) and am getting the same error:
fsds_ros2_bridge-3] terminate called after throwing an instance of 'std::invalid_argument' [fsds_ros2_bridge-3] what(): Failed loading settings.json.rpc::rpc_error during call
My debugging so far (Apologies if this is obvious/not helpful):
my error is coming from line 18 of airsim_ros_wrapper.cpp:
18 std::string settings_text = airsimclient.getSettingsString();
getSettingsString() is declared in lines 379-382 of RpcLibClientBase.cpp:
379 std::string RpcLibClientBase::getSettingsString() const
380 {
381 return pimpl_->client.call("getSettingsString").as
Hi @ThoroMech,
This is a mismatch in versions of the rpc server. This issue is introduced by #324, where the functionality of the rpc api was updated. V2.1.0 Does not contain the functionality to get the settings in that way. #333 Should fix this.
For now, it is best to use the source code at tag v2.1.0 or use any commit between v2.1.0 and 3047f0e24dce71b127577eee60150db4540fcfde
To switch to the fsds_ros_bridge/fsds_ros2_bridge code of v2.1.0 use git checkout tags/v2.1.0
. Your orther options for now is to run it in unreal engine (which I don't advice if you don't need to use it).
I'll try to release v2.2.0 this weekend
Thankyou @wouter-heerwegh
I am new to a lot of this, your effort is appreciated.
My understanding now is: prior to #327 AirSim/setup.sh will not work on 22.04 due to clang compatibility, and as you stated ros2_bridge has the rpc error after #324.
I have tried a couple different things but am unable to build the ros2_bridge from <#324 with airsim setup >#327. Is there a way to overcome this without reverting to a compatible ubuntu?
I might be best waiting for v2.20.
Hi @ThoroMech,
You could apply the changes from #327 manually to your local prpject to get it up and running. I'm still having an issue in the current build (#289), if I can't get it fixed by the weekend, I'll release v2.2.0.
Sorry that it took a bit longer, but release v2.2.0 is available. Test it out and feel free to give feedback.
If the above issue is fixed you can close this issue.
Thanks Again @wouter-heerwegh,
Having some PC issues at the moment, hopefully have them sorted and be able to test ROS2 bridge by next weekend.
Thanks Wouter
Everything is working well for me so far. The update has also fixed the binary loading to black screen. only thing i have found is FSDS.sh needs to be made executable before using since the update.
@ThoroMech thanks for the feedback. I uploaded a new zip file for the linux version with the FSDS.sh script as an executable.
I'm closing this issue as I expect it is fixed, if not, feel free to reopen.
I am trying to run fsds with ros bridge but i am not able to due to the following error. I even tried reinstalling it but got the same error. Ubuntu- 18.04 LTS ROS Melodic
Any help will be much appreciated!