一ノ瀬と申します。
ROSの環境設定で質問があります。
rosをインストールした後、環境変数を設定するため、
echo "source /opt/ros/groovy/setup.bash" >> ~/.bashrc
とターミナルに打ち込むと、
bash: /share/rosbash/rosbash: そのようなファイルやディレクトリはありません
と表示されました。
探してみると、/opt/ros/groovy/setup.bashが見つからず、代わりに ~/ros/fuerteの下にsetup.bashが見つかりました。
source ~/ros/fuerte/setup.bash じゃなにか不都合ありますか。
もしかしてその前の段階で、sudo rosdep initと入力した時に、以下のような大量のエラーが出たのが原因でしょうか?
(ちなみに、roscore rosnode などのコマンドはうまく使えました。ただ、roscreate-pkgは使えませんでした。)
ERROR: Rosdep experienced an internal error: line:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
type must be one of [yaml,gbpdistro]
Please go to the rosdep page [1] and file a bug report with the stack trace below.
[1] :
http://www.ros.org/wiki/rosdepTraceback (most recent call last):
File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 116, in rosdep_main
exit_code = _rosdep_main(args)
File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 255, in _rosdep_main
return _no_args_handler(command, parser, options, args)
File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 263, in _no_args_handler
return command_handlers[command](options)
File "/usr/lib/pymodules/python2.7/rosdep2/main.py", line 372, in command_init
data = download_default_sources_list()
File "/usr/lib/pymodules/python2.7/rosdep2/sources_list.py", line 279, in download_default_sources_list
parse_sources_data(data)
File "/usr/lib/pymodules/python2.7/rosdep2/sources_list.py", line 320, in parse_sources_data
raise InvalidData("line:\n\t%s\n%s"%(line, e), origin=origin)
InvalidData: line:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
type must be one of [yaml,gbpdistro]
mechuser@IMI-T400s:~$ rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
ERROR: unable to process source [
https://github.com/ros/rosdistro/raw/master/rosdep/osx-homebrew.yaml]:
while scanning for the next token
found character '\t' that cannot start any token
in "<string>", line 9, column 1:
background: #000 url('/auth/def ...
^
ERROR: unable to process source [
https://github.com/ros/rosdistro/raw/master/rosdep/gentoo.yaml]:
while scanning for the next token
found character '\t' that cannot start any token
in "<string>", line 9, column 1:
background: #000 url('/auth/def ...
^
ERROR: unable to process source [
https://github.com/ros/rosdistro/raw/master/rosdep/base.yaml]:
while scanning for the next token
found character '\t' that cannot start any token
in "<string>", line 9, column 1:
background: #000 url('/auth/def ...
^
ERROR: unable to process source [
https://github.com/ros/rosdistro/raw/master/rosdep/python.yaml]:
while scanning for the next token
found character '\t' that cannot start any token
in "<string>", line 9, column 1:
background: #000 url('/auth/def ...
^
ERROR: unable to process source [
https://github.com/ros/rosdistro/raw/master/rosdep/ruby.yaml]:
while scanning for the next token
found character '\t' that cannot start any token
in "<string>", line 9, column 1:
background: #000 url('/auth/def ...
^
ERROR: unable to process source [
https://github.com/ros/rosdistro/raw/master/releases/fuerte.yaml]:
Failed to download target platform data for gbpdistro:
while scanning for the next token
found character '\t' that cannot start any token
in "<string>", line 9, column 1:
background: #000 url('/auth/def ...
^
ERROR: unable to process source [
https://github.com/ros/rosdistro/raw/master/releases/groovy.yaml]:
Failed to download target platform data for gbpdistro:
while scanning for the next token
found character '\t' that cannot start any token
in "<string>", line 9, column 1:
background: #000 url('/auth/def ...
^
updated cache in /home/mechuser/.ros/rosdep/sources.cache
ERROR: Not all sources were able to be updated.
[[[
ERROR: unable to process source [
https://github.com/ros/rosdistro/raw/master/rosdep/osx-homebrew.yaml]:
while scanning for the next token
found character '\t' that cannot start any token
in "<string>", line 9, column 1:
background: #000 url('/auth/def ...
^
ERROR: unable to process source [
https://github.com/ros/rosdistro/raw/master/rosdep/gentoo.yaml]:
while scanning for the next token
found character '\t' that cannot start any token
in "<string>", line 9, column 1:
background: #000 url('/auth/def ...
^
ERROR: unable to process source [
https://github.com/ros/rosdistro/raw/master/rosdep/base.yaml]:
while scanning for the next token
found character '\t' that cannot start any token
in "<string>", line 9, column 1:
background: #000 url('/auth/def ...
^
ERROR: unable to process source [
https://github.com/ros/rosdistro/raw/master/rosdep/python.yaml]:
while scanning for the next token
found character '\t' that cannot start any token
in "<string>", line 9, column 1:
background: #000 url('/auth/def ...
^
ERROR: unable to process source [
https://github.com/ros/rosdistro/raw/master/rosdep/ruby.yaml]:
while scanning for the next token
found character '\t' that cannot start any token
in "<string>", line 9, column 1:
background: #000 url('/auth/def ...
^
ERROR: unable to process source [
https://github.com/ros/rosdistro/raw/master/releases/fuerte.yaml]:
Failed to download target platform data for gbpdistro:
while scanning for the next token
found character '\t' that cannot start any token
in "<string>", line 9, column 1:
background: #000 url('/auth/def ...
^
ERROR: unable to process source [
https://github.com/ros/rosdistro/raw/master/releases/groovy.yaml]:
Failed to download target platform data for gbpdistro:
while scanning for the next token
found character '\t' that cannot start any token
in "<string>", line 9, column 1:
background: #000 url('/auth/def ...
^
]]]