Prometheus 环境搭建

2023-05-16

1 ubuntu和ros安装<安装ubuntu对应的ros版本>

2 prometheus_px4配置

prometheus_px4是Prometheus项目配套使用的PX4固件,Prometheus项目的仿真模块依赖PX4固件以及sitl_gazebo ros功能包。

cd prometheus_px4/Tools/setup
source ./ubuntu.sh

问题1  ./ubuntu.sh时报错:

Installing PX4 Python3 dependencies
Collecting argcomplete (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/d3/e5/c5509683462e51b070df9e83e7f72c1ccfe3f733f328b4a0f06804c27278/argcomplete-2.0.0-py2.py3-none-any.whl
Collecting argparse>=1.2 (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl
Collecting cerberus (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/c4/87/55f8b2e36a5f97c5aaf6424e75f7a21cbd69d0365f6e2e332d03d029bb15/Cerberus-1.3.4.tar.gz (63kB)
    100% |████████████████████████████████| 71kB 512kB/s 
Collecting coverage (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/4c/0b/731e558a762ed89478e2badc388443b30ebb0a975c335ae60e24b52d5b00/coverage-6.2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (212kB)
    100% |████████████████████████████████| 215kB 749kB/s 
Collecting empy>=3.3 (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/3b/95/88ed47cb7da88569a78b7d6fb9420298df7e99997810c844a924d96d3c08/empy-3.3.4.tar.gz (62kB)
    100% |████████████████████████████████| 71kB 2.0MB/s 
Collecting jinja2>=2.8 (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 6))
  Downloading https://files.pythonhosted.org/packages/20/9a/e5d9ec41927401e41aea8af6d16e78b5e612bca4699d417f646a9610a076/Jinja2-3.0.3-py3-none-any.whl (133kB)
    100% |████████████████████████████████| 143kB 1.9MB/s 
Collecting matplotlib>=3.0.* (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/09/03/b7b30fa81cb687d1178e085d0f01111ceaea3bf81f9330c937fb6f6c8ca0/matplotlib-3.3.4-cp36-cp36m-manylinux1_x86_64.whl (11.5MB)
    100% |████████████████████████████████| 11.5MB 112kB/s 
Collecting numpy>=1.13 (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 8))
  Downloading https://files.pythonhosted.org/packages/45/b2/6c7545bb7a38754d63048c7696804a0d947328125d81bf12beaa692c3ae3/numpy-1.19.5-cp36-cp36m-manylinux1_x86_64.whl (13.4MB)
    100% |████████████████████████████████| 13.4MB 99kB/s 
Collecting nunavut>=1.1.0 (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 9))
  Downloading https://files.pythonhosted.org/packages/06/fd/cc2278197f54dd9450b18578c3dce2302123cf352378c50ecfb933925146/nunavut-1.8.3-2506748069-py3-none-any.whl (329kB)
    100% |████████████████████████████████| 337kB 2.4MB/s 
Collecting packaging (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 10))
  Downloading https://files.pythonhosted.org/packages/05/8e/8de486cbd03baba4deef4142bd643a3e7bbe954a784dc1bb17142572d127/packaging-21.3-py3-none-any.whl (40kB)
    100% |████████████████████████████████| 40kB 1.8MB/s 
Collecting pandas>=0.21 (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/c3/e2/00cacecafbab071c787019f00ad84ca3185952f6bb9bca9550ed83870d4d/pandas-1.1.5-cp36-cp36m-manylinux1_x86_64.whl (9.5MB)
    100% |████████████████████████████████| 9.5MB 143kB/s 
Collecting pkgconfig (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 12))
  Downloading https://files.pythonhosted.org/packages/32/af/89487c7bbf433f4079044f3dc32f9a9f887597fe04614a37a292e373e16b/pkgconfig-1.5.5-py3-none-any.whl
Collecting psutil (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 13))
  Downloading https://files.pythonhosted.org/packages/8f/57/828ac1f70badc691a716e77bfae258ef5db76bb7830109bf4bcf882de020/psutil-5.9.2.tar.gz (479kB)
    100% |████████████████████████████████| 481kB 2.3MB/s 
Collecting pygments (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 14))
  Downloading https://files.pythonhosted.org/packages/4f/82/672cd382e5b39ab1cd422a672382f08a1fb3d08d9e0c0f3707f33a52063b/Pygments-2.13.0-py3-none-any.whl (1.1MB)
    100% |████████████████████████████████| 1.1MB 1.2MB/s 
Collecting wheel>=0.31.1 (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 15))
  Downloading https://files.pythonhosted.org/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl
Collecting pymavlink (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 16))
  Downloading https://files.pythonhosted.org/packages/2e/49/86ac896572170b9b1d4acdaa5e639eef402a3fcf53f0a5e28acc610f42c2/pymavlink-2.4.35.tar.gz (10.6MB)
    100% |████████████████████████████████| 10.6MB 119kB/s 
Collecting pyros-genmsg (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 17))
  Downloading https://files.pythonhosted.org/packages/37/46/c5e3076ce9480d4002e87268c09270a1db17d3173a7b97fe1501827d27c6/pyros_genmsg-0.5.8-py2.py3-none-any.whl
Collecting pyserial (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 18))
  Downloading https://files.pythonhosted.org/packages/07/bc/587a445451b253b285629263eb51c2d8e9bcea4fc97826266d186f96f558/pyserial-3.5-py2.py3-none-any.whl (90kB)
    100% |████████████████████████████████| 92kB 2.4MB/s 
Collecting pyulog>=0.5.0 (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 19))
  Downloading https://files.pythonhosted.org/packages/f4/f8/00495d753b987fe228f3eb1b81c32a7bab5339627f52e30a4b887af7bdb0/pyulog-0.9.0-py3-none-any.whl
Collecting pyyaml (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 20))
  Downloading https://files.pythonhosted.org/packages/b3/85/79b9e5b4e8d3c0ac657f4e8617713cca8408f6cdc65d2ee6554217cedff1/PyYAML-6.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (603kB)
    100% |████████████████████████████████| 604kB 1.9MB/s 
Collecting requests (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 21))
  Downloading https://files.pythonhosted.org/packages/2d/61/08076519c80041bc0ffa1a8af0cbd3bf3e2b62af10435d269a9d0f40564d/requests-2.27.1-py2.py3-none-any.whl (63kB)
    100% |████████████████████████████████| 71kB 2.1MB/s 
Collecting setuptools>=39.2.0 (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 22))
  Downloading https://files.pythonhosted.org/packages/b0/3a/88b210db68e56854d0bcf4b38e165e03be377e13907746f825790f3df5bf/setuptools-59.6.0-py3-none-any.whl (952kB)
    100% |████████████████████████████████| 962kB 1.3MB/s 
Collecting six>=1.12.0 (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 23))
  Downloading https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
Collecting toml>=0.9 (from -r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 24))
  Downloading https://files.pythonhosted.org/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl
Collecting importlib-metadata<5,>=0.23; python_version == "3.6" (from argcomplete->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/a0/a1/b153a0a4caf7a7e3f15c2cd56c7702e2cf3d89b1b359d1f1c5e59d68f4ce/importlib_metadata-4.8.3-py3-none-any.whl
Collecting MarkupSafe>=2.0 (from jinja2>=2.8->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 6))
  Downloading https://files.pythonhosted.org/packages/fc/d6/57f9a97e56447a1e340f8574836d3b636e2c14de304943836bd645fa9c7e/MarkupSafe-2.0.1-cp36-cp36m-manylinux1_x86_64.whl
Collecting kiwisolver>=1.0.1 (from matplotlib>=3.0.*->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/a7/1b/cbd8ae738719b5f41592a12057ef5442e2ed5f5cb5451f8fc7e9f8875a1a/kiwisolver-1.3.1-cp36-cp36m-manylinux1_x86_64.whl (1.1MB)
    100% |████████████████████████████████| 1.1MB 1.2MB/s 
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 (from matplotlib>=3.0.*->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/6c/10/a7d0fa5baea8fe7b50f448ab742f26f52b80bfca85ac2be9d35cdd9a3246/pyparsing-3.0.9-py3-none-any.whl (98kB)
    100% |████████████████████████████████| 102kB 3.7MB/s 
Collecting cycler>=0.10 (from matplotlib>=3.0.*->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/5c/f9/695d6bedebd747e5eb0fe8fad57b72fdf25411273a39791cde838d5a8f51/cycler-0.11.0-py3-none-any.whl
Collecting python-dateutil>=2.1 (from matplotlib>=3.0.*->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl (247kB)
    100% |████████████████████████████████| 256kB 4.1MB/s 
Collecting pillow>=6.2.0 (from matplotlib>=3.0.*->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/7d/2a/2fc11b54e2742db06297f7fa7f420a0e3069fdcf0e4b57dfec33f0b08622/Pillow-8.4.0.tar.gz (49.4MB)
    100% |████████████████████████████████| 49.4MB 26kB/s 
Collecting pydsdl~=1.16 (from nunavut>=1.1.0->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 9))
  Downloading https://files.pythonhosted.org/packages/33/52/d704412f9311e51e22f634500660a39dfa66e097cba53f37ebcd497d1c08/pydsdl-1.16.1-py3-none-any.whl (110kB)
    100% |████████████████████████████████| 112kB 2.8MB/s 
Collecting importlib-resources (from nunavut>=1.1.0->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 9))
  Downloading https://files.pythonhosted.org/packages/24/1b/33e489669a94da3ef4562938cd306e8fa915e13939d7b8277cb5569cb405/importlib_resources-5.4.0-py3-none-any.whl
Collecting pytz>=2017.2 (from pandas>=0.21->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/d5/50/54451e88e3da4616286029a3a17fc377de817f66a0f50e1faaee90161724/pytz-2022.2.1-py2.py3-none-any.whl (500kB)
    100% |████████████████████████████████| 501kB 1.9MB/s 
Collecting future (from pymavlink->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 16))
  Downloading https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz (829kB)
    100% |████████████████████████████████| 829kB 1.2MB/s 
Collecting lxml (from pymavlink->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 16))
  Downloading https://files.pythonhosted.org/packages/0f/4e/e139648475c0eb42cdb813461ae11f567e1888a20d7dfd5256f47e32909d/lxml-4.9.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (5.6MB)
    100% |████████████████████████████████| 5.6MB 227kB/s 
Collecting idna<4,>=2.5; python_version >= "3" (from requests->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 21))
  Downloading https://files.pythonhosted.org/packages/fc/34/3030de6f1370931b9dbb4dad48f6ab1015ab1d32447850b9fc94e60097be/idna-3.4-py3-none-any.whl (61kB)
    100% |████████████████████████████████| 71kB 2.4MB/s 
Collecting certifi>=2017.4.17 (from requests->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 21))
  Downloading https://files.pythonhosted.org/packages/6a/34/cd29f4dd8a23ce45f2b8ce9631ff2d4205fb74eddb412a3dc4fd1e4aa800/certifi-2022.9.14-py3-none-any.whl (162kB)
    100% |████████████████████████████████| 163kB 2.0MB/s 
Collecting charset-normalizer~=2.0.0; python_version >= "3" (from requests->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 21))
  Downloading https://files.pythonhosted.org/packages/06/b3/24afc8868eba069a7f03650ac750a778862dc34941a4bebeb58706715726/charset_normalizer-2.0.12-py3-none-any.whl
Collecting urllib3<1.27,>=1.21.1 (from requests->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 21))
  Downloading https://files.pythonhosted.org/packages/6f/de/5be2e3eed8426f871b170663333a0f627fc2924cc386cd41be065e7ea870/urllib3-1.26.12-py2.py3-none-any.whl (140kB)
    100% |████████████████████████████████| 143kB 2.2MB/s 
Collecting zipp>=0.5 (from importlib-metadata<5,>=0.23; python_version == "3.6"->argcomplete->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/bd/df/d4a4974a3e3957fd1c1fa3082366d7fff6e428ddb55f074bf64876f8e8ad/zipp-3.6.0-py3-none-any.whl
Collecting typing-extensions>=3.6.4; python_version < "3.8" (from importlib-metadata<5,>=0.23; python_version == "3.6"->argcomplete->-r /home/darren/prometheus_px4/Tools/setup/requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/45/6b/44f7f8f1e110027cf88956b59f2fad776cca7e1704396d043f89effd3a0e/typing_extensions-4.1.1-py3-none-any.whl
Building wheels for collected packages: cerberus, empy, psutil, pymavlink, pillow, future
  Running setup.py bdist_wheel for cerberus ... done
  Stored in directory: /home/darren/.cache/pip/wheels/77/71/3b/c25a33072e89278d7b0e814f61a083a881cdcf0df8a932b66b
  Running setup.py bdist_wheel for empy ... done
  Stored in directory: /home/darren/.cache/pip/wheels/bd/e0/93/4558733f591dd47c560c86ddf8e8c81f5a0ae0493c52e4c56f
  Running setup.py bdist_wheel for psutil ... done
  Stored in directory: /home/darren/.cache/pip/wheels/20/2b/c5/ab75715a9edca85f9a2972c6927d24d708dcd8edb14f6e2e88
  Running setup.py bdist_wheel for pymavlink ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-tjgzw83f/pymavlink/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp_6f4pf3spip-wheel- --python-tag cp36:
  /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
    warnings.warn(msg)
  running bdist_wheel
  running build
  running build_py
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-tjgzw83f/pymavlink/setup.py", line 178, in <module>
      ext_modules = extensions
    File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 129, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 204, in run
      self.run_command('build')
    File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/usr/lib/python3.6/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-tjgzw83f/pymavlink/setup.py", line 104, in run
      generate_content()
    File "/tmp/pip-build-tjgzw83f/pymavlink/setup.py", line 22, in generate_content
      from generator import mavgen, mavparse
    File "/tmp/pip-build-tjgzw83f/pymavlink/generator/mavgen.py", line 26, in <module>
      from future import standard_library
  ModuleNotFoundError: No module named 'future'
  
  ----------------------------------------
  Failed building wheel for pymavlink
  Running setup.py clean for pymavlink
  Running setup.py bdist_wheel for pillow ... done
  Stored in directory: /home/darren/.cache/pip/wheels/a7/69/9a/bba9fca6782340f88dbc378893095722a663cbc618e58fe401
  Running setup.py bdist_wheel for future ... done
  Stored in directory: /home/darren/.cache/pip/wheels/8b/99/a0/81daf51dcd359a9377b110a8a886b3895921802d2fc1b2397e
Successfully built cerberus empy psutil pillow future
Failed to build pymavlink
Installing collected packages: zipp, typing-extensions, importlib-metadata, argcomplete, argparse, setuptools, cerberus, coverage, empy, MarkupSafe, jinja2, kiwisolver, pyparsing, numpy, cycler, six, python-dateutil, pillow, matplotlib, pydsdl, importlib-resources, pyyaml, nunavut, packaging, pytz, pandas, pkgconfig, psutil, pygments, wheel, future, lxml, pymavlink, pyros-genmsg, pyserial, pyulog, idna, certifi, charset-normalizer, urllib3, requests, toml
  Running setup.py install for pymavlink ... done
Successfully installed MarkupSafe-2.0.1 argcomplete-2.0.0 argparse-1.4.0 cerberus-1.3.4 certifi-2022.9.14 charset-normalizer-2.0.12 coverage-6.2 cycler-0.11.0 empy-3.3.4 future-0.18.2 idna-3.4 importlib-metadata-4.8.3 importlib-resources-5.4.0 jinja2-3.0.3 kiwisolver-1.3.1 lxml-4.9.1 matplotlib-3.3.4 numpy-1.19.5 nunavut-1.8.3 packaging-21.3 pandas-1.1.5 pillow-8.4.0 pkgconfig-1.5.5 psutil-5.9.2 pydsdl-1.16.1 pygments-2.13.0 pymavlink-2.4.35 pyparsing-3.0.9 pyros-genmsg-0.5.8 pyserial-3.5 python-dateutil-2.8.2 pytz-2022.2.1 pyulog-0.9.0 pyyaml-6.0 requests-2.27.1 setuptools-59.6.0 six-1.16.0 toml-0.10.2 typing-extensions-4.1.1 urllib3-1.26.12 wheel-0.37.1 zipp-3.6.0

Installing NuttX dependencies

定位错误:

# Python3 dependencies
echo
echo "Installing PX4 Python3 dependencies"
python3 -m pip install --user -r ${DIR}/requirements.txt

# NuttX toolchain (arm-none-eabi-gcc)
if [[ $INSTALL_NUTTX == "true" ]]; then

	echo
	echo "Installing NuttX dependencies"

requirements.txt:

argcomplete
argparse>=1.2
cerberus
coverage
empy>=3.3
jinja2>=2.8
matplotlib>=3.0.*
numpy>=1.13
nunavut>=1.1.0
packaging
pandas>=0.21
pkgconfig
psutil
pygments
wheel>=0.31.1
pymavlink
pyros-genmsg
pyserial
pyulog>=0.5.0
pyyaml
requests
setuptools>=39.2.0
six>=1.12.0
toml>=0.9

就是这个文件 

单独进行安装,然后重新./ubuntu.sh就可以了:

python3 -m pip install  wheel>=0.31.1
python3 -m pip install  pymavlink

问题2:无法定位i软件包 kconfig-frontends


解决办法: Ubuntu18.04下自定义meauconfig_Donce Jiang的博客-CSDN博客

问题2.1:执行到make install时报错

darren@darren:~/prometheus_px4/Tools/setup/tools/kconfig-frontends$ make install
 /bin/mkdir -p '/usr/local/lib'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   libs/parser/libkconfig-parser.la '/usr/local/lib'
libtool: install: /usr/bin/install -c libs/parser/.libs/libkconfig-parser-4.11.0.so /usr/local/lib/libkconfig-parser-4.11.0.so
/usr/bin/install: cannot create regular file '/usr/local/lib/libkconfig-parser-4.11.0.so': Permission denied
Makefile:990: recipe for target 'install-libLTLIBRARIES' failed
make[2]: *** [install-libLTLIBRARIES] Error 1
Makefile:1924: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
Makefile:1918: recipe for target 'install' failed
make: *** [install] Error 2

解决办法:管理员权限

NUTTX学习笔记(一)_zhao23333的博客-CSDN博客

sudo make install

变更链接库位置
kconfig-frontends的安装路径(一般为 /usr/local/lib)添加到 /etc 目录下的 ld.so.conf 文件中,然后执行ldconfig工具:

sudo vim /etc/ld.so.conf

测试是否安装成功:

git clone https://github.com/skif-web/demo-kbuild.git

cd demo-kbuild

ls

发现有三个文件:

getLast.sh KConfig README.md

执行:

kconfig-mconf KConfig

出现这个对话框: 

问题3:

编译prometheus_px4

make amovlab_sitl_default gazebo_p450

报错:ninja: error: '/usr/lib/x86_64-linux-gnu/libignition-common1.so.1.0.1' 
 

解决办法: 

vmware下ubuntu18.04 安装ROS Melodic+gazebo9+PX4并roslaunch运行+QGroundConrtol控制_cycyco的博客-CSDN博客_安装gazebo9

然后重新make一下:
 

make clean
make amovlab_sitl_default gazebo_p450 

出现问题3.1

FAILED: ROMFS/romfs_extract.stamp 
cd /home/lyq/github_project/PX4-Autopilot/build/px4_sitl_default/etc && /usr/bin/cmake -E remove_directory /home/lyq/github_project/PX4-Autopilot/build/px4_sitl_default/etc/* && /usr/bin/cmake -E tar xf /home/lyq/github_project/PX4-Autopilot/build/px4_sitl_default/romfs_files.tar && /usr/bin/cmake -E touch /home/lyq/github_project/PX4-Autopilot/build/px4_sitl_default/ROMFS/romfs_extract.stamp
CMake Error: cmake version 3.10.2
... ... 

解决办法:

make px4_sitl gazebo报错:FAILED: ROMFS/romfs_extract.stamp_Enterprise0的博客-CSDN博客

推荐PX4官网: Building PX4 Software | PX4 User Guide

git submodule update --recursive
make distclean

大部分编译的问题是因为submodules没有正确匹配和没有完全清除编译环境
运行上面的代码,然后重新运行make amovlab_sitl_default gazebo_p450,能够正常运行。

NOTE:   make clean 与 make dis

make clean 清除之前编译的可执行文件及配置文件。
make distclean 清除所有生成的文件

commander land飞机起飞

3 Prometheus配置

 安装prometheus_mavros  需要 上网 才行,

./install_prometheus_mavros.sh

 不然一直卡在 Installing GeographicLib geoids egm96-5

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Prometheus 环境搭建 的相关文章

  • python项目打包(自定义dll) anaconda3+pyinstaller

    目前手上有一个python 43 pyqt的项目需要打包 xff0c 所以查了一下打包的方法 下面介绍一下具体步骤 xff1a python打包有很多方法 xff0c py2exe xff0c pyinstaller等等 xff08 其实我
  • Docker(六)同一镜像有多个Tag情况下,执行 docker rmi 镜像ID 指令无法删除

    删除方法一 docker rmi f 镜像ID 删除方法二 docker rmi repository tag 参考 xff1a 1 https www imooc com article 35040
  • 《ROS机器人开发实践(胡春旭)》第十章MoveIt!机械臂控制 学习笔记

    r 在学习 ROS机器人开发实践 胡春旭 第10章的MoveIt xff01 时 xff0c 因为在自己创建的工作空间中没有下载作者的源代码 xff0c 所有有以下几个问题 xff1a 1 使用moveit setup assistant时
  • Android 根据网络分析运营商信息

    我们想获取手机的运营商信息 通常都会去调用系统的TelephonyManager类的取数据 但是很多时候可能取不到卡的信息 xff08 例如双卡手机和一些特殊卡 xff09 xff0c 这样就区别不了运营商了 但是有时候我们的需求要进行不通
  • 简单又好看的按钮,扁平化按钮。

    今天分享一下流行的扁平化按钮 完全不需要用到图片哦 效果图如下 xff1a 里面有2个按钮都是一样的模式 只要修改的色值就可以 下面跟我来更新你的UI吧 首先编写 button xml 代码如下 lt xml version 61 34 1
  • Android 获取运营商信息(完整版)-解决高通,MTK等双卡问题

    由于国内的运营商问题 xff0c 双卡手机获取IMSI号问题要根据厂商API 来实现 下面我们就来做一套完整的分析运营商获取IMSI号逻辑 1 xff0c 首先我们要判断手机的平台 1 1 xff0c 判断手机是否MTK平台 public
  • AstarPathfindingProject 中RVO碰撞体扩展

    原本库中只有矩形RVO碰撞体 xff0c 如果要添加自己的需要继承RVOObstacle抽象类 xff0c 重写里面的方法 例如下面的圆柱形碰撞 using UnityEngine if UNITY EDITOR using UnityEd
  • Android中抓取手机视频流数据。

    目前实时抓取手机视频数据有2种方法 xff0c 一种是通过camera的回调获取源数据 xff0c 这里获取的源数据是没有编码的数据 有的人发送yuv数据然后在那绘制图片 xff0c 也说视频聊天 xff0c 真是可笑 这种方式是可是实现视
  • Android 使用AudioRecord录音相关和音频文件的封装

    在Android中录音可以用MediaRecord录音 xff0c 操作比较简单 但是不够专业 xff0c 就是不能对音频进行处理 如果要进行音频的实时的处理或者音频的一些封装 就可以用AudioRecord来进行录音了 这里给出一段代码
  • Android 中使用MediaRecorder进行录像详解(视频录制)

    在这里给出自己的一个测试DEMO xff0c 里面注释很详细 简单的视频录制功能 package com video import java io IOException import android app Activity import
  • Android手机中获取手机号码和运营商信息

    代码如下 xff1a package com pei activity import android app Activity import android os Bundle import android view View import
  • C语言下划线开头的函数

    首先 xff0c C 43 43 里关于下划线的问题是源于C语言 xff0c 因为C 43 43 允许用extern C 来修饰代码以C语言语法方式编译 然后说C语言里的下划线 xff1a C语言确实允许以下划线开头的函数存在 xff0c
  • 校验和计算方法

    1 说明 xff1a 1 校验和覆盖的内容 xff1a IP校验和 xff1a IP首部 ICMP校验和 xff1a ICMP首部 43 ICMP数据 xff1b UDP TCP校验和 xff1a 首部 43 数据 43 12个字节伪首部
  • 布谷鸟算法浅谈与简单应用

    简介 布谷鸟算法是由剑桥大学Xin She Yang教授和S Deb于2009年提出的一种新兴的启发算法 xff0c 是一种通过模拟自然界当中布谷鸟 xff08 也就是杜鹃 xff0c 故该算法也称为杜鹃算法 xff09 在繁育后代的行为而
  • torchvision中inception v3的实现

    一 torchvision中inception v3的网络结构 论文中给的结构如下图所示 但是torchvision中的inception v3结构中并不是这么实现的 下面解释一下torchvision中的inception v3结构 xf
  • 实践 基于Arduino 的 平衡车

    完成样子 因为只是学习验证 xff0c 没用电烙铁 xff0c 只用了面包板来连接各个组件 xff0c 中间用扎带固定 xff08 不稳定 xff09 完成后能基本保持平衡 xff0c 但太大力去推容易倒 平衡原理 通过负反馈实现平衡 xf
  • CMake入门-04-自定义编译选项

    工作环境 系统 xff1a macOS Mojave 10 14 6CMake Version 3 15 0 rc4 Hello World 自定义编译选项 CMake 允许为项目增加编译选项 xff0c 从而可以根据用户的环境和需求选择最
  • Linux 驱动开发简单实例

    Xiuye XY于 2021 08 03 19 17 07 发布343 收藏 3 分类专栏 xff1a 笔记 C C 43 43 Linux 版权 编辑笔记同时被 3 个专栏收录正在上传 重新上传取消 128 篇文章0 订阅 订阅专栏 编辑
  • ros下编译安装package

    原文地址 配置Release目录 catkin config install修改CMakeList txt文件 修改节点中CMakeLists txt文件 假设此处我们的节点项目名称为 test node 即CMakeLists txt中p
  • 什么是解耦?

    什么是解耦 解耦就是用数学方法将两种运动分离开来处理问题 对项目划分为多个模块这种做法你有什么看法 xff1f 优势 劣势有哪些 xff1f 多模块化项目优势在于 xff1a 提高代码的重用率 xff0c 可维护性高 xff0c 架构灵活

随机推荐

  • HDFS-Tiering 数据分层存储

    1 背景 随着小米业务迅猛发展 xff0c 存储到 HDFS 集群的数据量不断增大 xff0c 存储成本也不断攀升 尤其是海外 HDFS 集群每 GB 数据的成本是国内集群的 10 倍左右 xff0c 如何优化海外集群的存储成本变得非常迫切
  • 米家插件平台的技术实践之路

    2016年小米正式发布米家品牌 xff0c 此后米家开始接入第三方的智能硬件产品 xff0c 小米的IoT生态也迎来了快速发展 截止到2020年Q3 xff0c 小米AIoT平台已连接的IoT设备 xff08 不包括智能手机及笔记本电脑 x
  • 拥抱开源 | Xiaomi Vela团队成果连连,喜讯不断

    Xiaomi Vela是基于开源实时操作系统NuttX打造的物联网操作系统 xff0c Vela可以在各种物联网硬件上提供统一的软件平台 xff0c 通过丰富的组件和标准化的软件框架 xff0c 打通碎片化的物联网应用场景 今年Xiaomi
  • 将开源进行到底!小米新一代Kaldi荣获2022数博会“领先科技成果”奖

    5月26日 xff0c 数博会开幕式当天揭晓了 2022中国国际大数据产业博览会数博发布之领先科技成果 奖 xff0c 小米公司 新一代Kaldi 项目 xff0c 凭借全自研的创新成果和突出的社会价值 xff0c 获得评委会一致认可 xf
  • 小米AI实验室4篇论文入选语音技术顶会INTERSPEECH 2022

    滴滴 重磅消息新鲜出炉 xff01 xff01 全球语音领域顶级会议 INTERSPEECH 2022公布了论文入选名单 xff0c 小米 AI 实验室4篇论文被接收 INTERSPEECH 是由国际语音通信协会ISCA组织的语音领域的顶级
  • 干货 | 足式机器人运动控制发展方向——轨迹优化

    运动控制技术的进步使得足式机器人的运动能力更强 xff0c 而近来轨迹优化作为主流学术研究方向 xff0c 能够为足式机器人运动控制的发展提供可能的指引 本期技术干货 xff0c 我们邀请到了小米工程师徐喆 xff0c 向我们介绍足式机器人
  • GPS定位

    链接 天地图 xff0c 免费的 xff0c API开放的地图定位系统 链接 RTK和GPS定位 链接 rtk 精确定位 简介 链接 GPS RTK PPK三种定位技术的原理及应用 双频定位 xff0c 双频信号协同工作 xff0c 提供亚
  • 清华软件论坛 | 推动移动传感的极限:AIoT时代的智能健康和数字家庭

    清华软件论坛 xff0c 是在清华大学软件学院成立20周年之际创立的 xff0c 旨在探索软件科学基础理论 创新软件前沿技术 思辩软件工程方法 促进学科交叉融合 xff0c 持续提升清华软件发展水平 xff0c 清华大学软件学院打造 清华软
  • 国家级表彰 | 小米人工智能实验室声学语音团队荣获“全国工人先锋号”荣誉称号...

    小米人工智能实验室声学语音团队代表王育军接受央视采访 4月27日 xff0c 小米集团技术委员会人工智能实验室声学语音团队荣获由中华全国总工会颁发的 全国工人先锋号 荣誉称号 颁奖典礼在人民大会堂举行 xff0c 小米声学语音技术总监王育军
  • Tech Talk | 还原照片不同亮度范围细节——RAW HDR技术

    拍照时 xff0c 你是否遇到过这些情况呢 xff1f 拍摄的成片暗区过暗 xff0c 高亮区域过曝 逆光拍摄中 xff0c 会出现 鬼影 暗部噪声偏大导致图像出现瑕疵 照片的高光和暗区细节得总是不到完美呈现 xff0c 这是所有拍摄设备都
  • 技术人文 | 你的加入,会为更多人争取避险时间

    如图文未加载 xff0c 请刷新后重试 今天是第15个全国防灾减灾日 xff0c 不仅要提高意识预防于未然 xff0c 其实你也可以贡献一份力量 2019年 xff0c 小米与成都高新减灾所共同探索 合作研发 xff0c 发布了全球首个操作
  • 一篇文章搞懂HDFS管理权限

    小米的HDFS承载了公司内多个部门几十条业务线的几十PB数据 xff0c 这些数据有些是安全级别非常高的用户隐私数据 xff0c 也有被广泛被多个业务线使用的基础数据 xff0c 不同的业务之间有着复杂的数据依赖 因此 xff0c 如何管理
  • 2018年度小米运维盘点

    元旦假期一眨眼就没了 xff0c 2018年也嗖的一下就过去了 xff0c 这一年里发生的大事件你都还记得吗 xff1f 下面就让小编带你回顾一下过去这一年里小米运维的知识点吧 xff01 2018年我们推送了很多被读者认可的文章 xff0
  • 网络工程师眼中的自动化运维

    本文从一名网工从业者的角度出发 xff0c 探讨了在企业网运维过程中 xff0c 网络工程师可以用什么样的工具让网络更加透明高效 上篇文章回顾 xff1a Apache Ranger Hadoop ACL控制工具 引言 网络就像wifi x
  • 浅谈动态追踪技术

    本文主要介绍了动态追踪技术 xff0c 并举例说明动态追踪技术的应用 身为一个SRE xff0c 工作中经常会遇到各种奇奇怪怪的服务异常问题 这些问题在staging xff08 测试环境 xff09 没有发现 xff0c 但放到真实的生产
  • 深入浅出计算机视觉(一)

    本文通过案例引入计算机视觉基本知识 xff0c 并浅析其基本任务中的图像分类 图像分割进展及应用 历史文章回顾 xff1a HBase Replication详解 Foreword前言 先上几个计算机视觉应用的案例 xff1a 6月6日至8
  • orbslam2 安装与运行

    目录 一 更新apt库 xff0c 更新软件列表 二 安装git xff0c 用于从Github上克隆项目到本地 三 下载orbslam2源码 四 安装C 43 43 11编译器 cmake 五 安装Pangolin 六 安装Eigen3
  • strstr函数的用法

    包含文件 xff1a string h 函数名 strstr 函数原型 xff1a extern char strstr char str1 char str2 功能 xff1a 从字符串str1中查找是否有字符串str2 xff0c 如果
  • 冒泡排序、插入排序,选择排序区别

    在代码的写法上表现为 xff1a 冒泡排序 xff1a 在某一个元素的冒泡过程中 xff0c 当前元素与其他元素比较后可能需要进行互换操作 xff0c 而这个操作可能执行多次 选择排序 xff1a 当前元素只交换一次 xff08 或0次 x
  • Prometheus 环境搭建

    1 ubuntu和ros安装 lt 安装ubuntu对应的ros版本 gt 2 prometheus px4配置 prometheus px4是Prometheus项目配套使用的PX4固件 xff0c Prometheus项目的仿真模块依赖