-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read Vehicle Settings from settings.json through RPC #2415
Comments
Function create_ros_pubs_from_settings_json() (although named so) takes all the information not from json file, but from AirSimSettings singleton. Thus, you have to initialize AirSimSettingsParser class before using create_ros_pubs_from_settings_json(). This will run AirSimSettingsParser's constructor, parse settings.json and fill AirSimSettings. In other words, what you are doing is ok, just put AirSimSettingsParser somewhere in the definition of your node class. |
Hello,
I have a setup where I run a quadcopter in Unreal/ Airsim on a Windows machine and then control and get sensor data from the quadcopter using the MultirotorRpcLibClient from a Linux machine.
I saw that in airsim_ros_wrapper.cpp function AirsimROSWrapper::create_ros_pubs_from_settings_json() settings are pulled from the settings.json file and published as ROS topics.
I would like to pull my settings from the settings.json file into my logic on the Linux side, however when I use the code block below:
I get the print out:
My settings.json file only has a single quadcopter named "Drone1" with 4 camera settings, however using this method to pull AirSim Settings does not give me the vehicle I expect nor does it see the camera settings at all.
Questions:
Am I using this function wrong?
Is there a way to pull the settings.json file over RPC like the AirsimROSWrapper suggests?
Am I misunderstanding how the AirsimROSWrapper works?
Here is my settings.json:
The text was updated successfully, but these errors were encountered: