roscdコマンドが使えない

1,789 views
Skip to first unread message

gryu39

unread,
Oct 8, 2013, 11:22:53 PM10/8/13
to ros-jap...@googlegroups.com
ROSのインストール方法で質問があります。

現在ROSをインストールしてみたところ、
roscoreは行うことができるのですが、
roscdコマンドを使おうとすると以下のように表示が出て使うことができません。

$ roscd
roscd: コマンドが見つかりません

以下にインストール時の表示をコピーペーストしましたが、
この中のインストール方法で、どこか間違っているところがありますでしょうか。
ご教示願います。


$ sudo apt-get update
無視 http://jp.archive.ubuntu.com precise InRelease                           
無視 http://jp.archive.ubuntu.com precise-updates InRelease                   
無視 http://jp.archive.ubuntu.com precise-backports InRelease                 
無視 http://dl.google.com stable InRelease                                    
ヒット http://jp.archive.ubuntu.com precise Release.gpg                       
ヒット http://jp.archive.ubuntu.com precise-updates Release.gpg               
ヒット http://packages.ros.org precise InRelease                              
ヒット http://dl.google.com stable Release.gpg                                
ヒット http://jp.archive.ubuntu.com precise-backports Release.gpg             
ヒット http://jp.archive.ubuntu.com precise Release                           
無視 http://extras.ubuntu.com precise InRelease                               
無視 http://ppa.launchpad.net precise InRelease                               
ヒット http://jp.archive.ubuntu.com precise-updates Release                   
ヒット http://jp.archive.ubuntu.com precise-backports Release                 
ヒット http://jp.archive.ubuntu.com precise/main Sources                      
ヒット http://jp.archive.ubuntu.com precise/restricted Sources                
ヒット http://jp.archive.ubuntu.com precise/universe Sources                  
ヒット http://jp.archive.ubuntu.com precise/multiverse Sources                
ヒット http://jp.archive.ubuntu.com precise/main amd64 Packages               
ヒット http://dl.google.com stable Release                                    
ヒット http://packages.ros.org precise/main amd64 Packages                    
ヒット http://jp.archive.ubuntu.com precise/restricted amd64 Packages         
ヒット http://jp.archive.ubuntu.com precise/universe amd64 Packages           
ヒット http://jp.archive.ubuntu.com precise/multiverse amd64 Packages         
ヒット http://jp.archive.ubuntu.com precise/main i386 Packages                
ヒット http://jp.archive.ubuntu.com precise/restricted i386 Packages          
無視 http://security.ubuntu.com precise-security InRelease                    
取得:1 http://extras.ubuntu.com precise Release.gpg [72 B]                    
ヒット http://ppa.launchpad.net precise Release.gpg                           
ヒット http://jp.archive.ubuntu.com precise/universe i386 Packages            
ヒット http://jp.archive.ubuntu.com precise/multiverse i386 Packages          
ヒット http://jp.archive.ubuntu.com precise/main TranslationIndex             
ヒット http://jp.archive.ubuntu.com precise/multiverse TranslationIndex       
ヒット http://jp.archive.ubuntu.com precise/restricted TranslationIndex       
ヒット http://jp.archive.ubuntu.com precise/universe TranslationIndex         
ヒット http://jp.archive.ubuntu.com precise-updates/main Sources              
ヒット http://jp.archive.ubuntu.com precise-updates/restricted Sources        
ヒット http://jp.archive.ubuntu.com precise-updates/universe Sources          
ヒット http://jp.archive.ubuntu.com precise-updates/multiverse Sources        
ヒット http://dl.google.com stable/main amd64 Packages                        
ヒット http://jp.archive.ubuntu.com precise-updates/main amd64 Packages       
ヒット http://jp.archive.ubuntu.com precise-updates/restricted amd64 Packages 
ヒット http://jp.archive.ubuntu.com precise-updates/universe amd64 Packages   
ヒット http://jp.archive.ubuntu.com precise-updates/multiverse amd64 Packages 
ヒット http://jp.archive.ubuntu.com precise-updates/main i386 Packages        
ヒット http://packages.ros.org precise/main i386 Packages                     
無視 http://packages.ros.org precise/main TranslationIndex                    
ヒット http://jp.archive.ubuntu.com precise-updates/restricted i386 Packages  
ヒット http://jp.archive.ubuntu.com precise-updates/universe i386 Packages    
ヒット http://jp.archive.ubuntu.com precise-updates/multiverse i386 Packages  
ヒット http://jp.archive.ubuntu.com precise-updates/main TranslationIndex     
ヒット http://jp.archive.ubuntu.com precise-updates/multiverse TranslationIndex
ヒット http://jp.archive.ubuntu.com precise-updates/restricted TranslationIndex
ヒット http://jp.archive.ubuntu.com precise-updates/universe TranslationIndex 
ヒット http://jp.archive.ubuntu.com precise-backports/main Sources            
ヒット http://jp.archive.ubuntu.com precise-backports/restricted Sources      
ヒット http://jp.archive.ubuntu.com precise-backports/universe Sources        
ヒット http://jp.archive.ubuntu.com precise-backports/multiverse Sources      
ヒット http://jp.archive.ubuntu.com precise-backports/main amd64 Packages     
ヒット http://jp.archive.ubuntu.com precise-backports/restricted amd64 Packages
ヒット http://jp.archive.ubuntu.com precise-backports/universe amd64 Packages 
ヒット http://jp.archive.ubuntu.com precise-backports/multiverse amd64 Packages
ヒット http://dl.google.com stable/main i386 Packages                         
無視 http://dl.google.com stable/main TranslationIndex                        
ヒット http://security.ubuntu.com precise-security Release.gpg                
ヒット http://extras.ubuntu.com precise Release                               
ヒット http://ppa.launchpad.net precise Release                               
無視 http://extras.ubuntu.com precise Release                                 
ヒット http://jp.archive.ubuntu.com precise-backports/main i386 Packages      
ヒット http://jp.archive.ubuntu.com precise-backports/restricted i386 Packages
ヒット http://security.ubuntu.com precise-security Release                    
ヒット http://jp.archive.ubuntu.com precise-backports/universe i386 Packages  
ヒット http://jp.archive.ubuntu.com precise-backports/multiverse i386 Packages
ヒット http://jp.archive.ubuntu.com precise-backports/main TranslationIndex   
ヒット http://jp.archive.ubuntu.com precise-backports/multiverse TranslationIndex
ヒット http://jp.archive.ubuntu.com precise-backports/restricted TranslationIndex
ヒット http://jp.archive.ubuntu.com precise-backports/universe TranslationIndex
ヒット http://jp.archive.ubuntu.com precise/main Translation-ja               
ヒット http://jp.archive.ubuntu.com precise/main Translation-en               
無視 http://extras.ubuntu.com precise/main Sources/DiffIndex                  
ヒット http://ppa.launchpad.net precise/main Sources                          
ヒット http://jp.archive.ubuntu.com precise/multiverse Translation-ja         
ヒット http://jp.archive.ubuntu.com precise/multiverse Translation-en         
ヒット http://jp.archive.ubuntu.com precise/restricted Translation-ja         
ヒット http://jp.archive.ubuntu.com precise/restricted Translation-en         
ヒット http://jp.archive.ubuntu.com precise/universe Translation-ja           
ヒット http://jp.archive.ubuntu.com precise/universe Translation-en           
ヒット http://jp.archive.ubuntu.com precise-updates/main Translation-ja       
ヒット http://jp.archive.ubuntu.com precise-updates/main Translation-en       
ヒット http://jp.archive.ubuntu.com precise-updates/multiverse Translation-ja 
ヒット http://jp.archive.ubuntu.com precise-updates/multiverse Translation-en 
ヒット http://jp.archive.ubuntu.com precise-updates/restricted Translation-en 
ヒット http://jp.archive.ubuntu.com precise-updates/universe Translation-ja   
ヒット http://jp.archive.ubuntu.com precise-updates/universe Translation-en   
ヒット http://jp.archive.ubuntu.com precise-backports/main Translation-en     
ヒット http://jp.archive.ubuntu.com precise-backports/multiverse Translation-en
ヒット http://jp.archive.ubuntu.com precise-backports/restricted Translation-en
ヒット http://jp.archive.ubuntu.com precise-backports/universe Translation-en 
ヒット http://security.ubuntu.com precise-security/main Sources               
無視 http://extras.ubuntu.com precise/main amd64 Packages/DiffIndex           
無視 http://extras.ubuntu.com precise/main i386 Packages/DiffIndex            
無視 http://extras.ubuntu.com precise/main TranslationIndex                   
ヒット http://ppa.launchpad.net precise/main amd64 Packages                   
ヒット http://ppa.launchpad.net precise/main i386 Packages                    
無視 http://ppa.launchpad.net precise/main TranslationIndex                   
ヒット http://security.ubuntu.com precise-security/restricted Sources         
ヒット http://extras.ubuntu.com precise/main Sources          
ヒット http://security.ubuntu.com precise-security/universe Sources           
ヒット http://extras.ubuntu.com precise/main amd64 Packages                   
ヒット http://extras.ubuntu.com precise/main i386 Packages                    
ヒット http://security.ubuntu.com precise-security/multiverse Sources         
ヒット http://security.ubuntu.com precise-security/main amd64 Packages        
ヒット http://security.ubuntu.com precise-security/restricted amd64 Packages  
ヒット http://security.ubuntu.com precise-security/universe amd64 Packages    
ヒット http://security.ubuntu.com precise-security/multiverse amd64 Packages  
ヒット http://security.ubuntu.com precise-security/main i386 Packages         
ヒット http://security.ubuntu.com precise-security/restricted i386 Packages   
ヒット http://security.ubuntu.com precise-security/universe i386 Packages     
無視 http://packages.ros.org precise/main Translation-ja_JP                   
ヒット http://security.ubuntu.com precise-security/multiverse i386 Packages   
無視 http://packages.ros.org precise/main Translation-ja                      
無視 http://dl.google.com stable/main Translation-ja_JP                       
無視 http://packages.ros.org precise/main Translation-en                      
ヒット http://security.ubuntu.com precise-security/main TranslationIndex      
ヒット http://security.ubuntu.com precise-security/multiverse TranslationIndex
ヒット http://security.ubuntu.com precise-security/restricted TranslationIndex
ヒット http://security.ubuntu.com precise-security/universe TranslationIndex  
無視 http://dl.google.com stable/main Translation-ja                          
無視 http://dl.google.com stable/main Translation-en                          
ヒット http://security.ubuntu.com precise-security/main Translation-en        
ヒット http://security.ubuntu.com precise-security/multiverse Translation-en  
ヒット http://security.ubuntu.com precise-security/restricted Translation-en  
ヒット http://security.ubuntu.com precise-security/universe Translation-en    
無視 http://ppa.launchpad.net precise/main Translation-ja_JP                  
無視 http://extras.ubuntu.com precise/main Translation-ja_JP                  
無視 http://ppa.launchpad.net precise/main Translation-ja                     
無視 http://extras.ubuntu.com precise/main Translation-ja                     
無視 http://ppa.launchpad.net precise/main Translation-en                     
無視 http://extras.ubuntu.com precise/main Translation-en                     
72 B を 7秒 で取得しました (9 B/s)                                            
パッケージリストを読み込んでいます... 完了
W: GPG エラー: http://extras.ubuntu.com precise Release: 以下の署名が無効です: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <ftpm...@ubuntu.com>

$ sudo apt-get install ros-groovy-desktop
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています               
状態情報を読み取っています... 完了
ros-groovy-desktop はすでに最新バージョンです。
アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 652 個。

$ rosdep update
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit https://github.com/ros/rosdistro/raw/master/rosdep/osx-homebrew.yaml
Hit https://github.com/ros/rosdistro/raw/master/rosdep/gentoo.yaml
Hit https://github.com/ros/rosdistro/raw/master/rosdep/base.yaml
Hit https://github.com/ros/rosdistro/raw/master/rosdep/python.yaml
Hit https://github.com/ros/rosdistro/raw/master/rosdep/ruby.yaml
Hit https://github.com/ros/rosdistro/raw/master/releases/fuerte.yaml
ERROR: unable to process source [https://github.com/ros/rosdistro/raw/master/releases/groovy.yaml]:
    Failed to download target platform data for gbpdistro:
    HTTP Error 404: Not Found
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/releases/groovy.yaml]:
    Failed to download target platform data for gbpdistro:
    HTTP Error 404: Not Found
]]]

$ echo "source /opt/ros/groovy/setup.bash" >> ~/.bashrc
$ source ~/.bashrc

$ roscd
roscd: コマンドが見つかりません








gryu39

unread,
Oct 8, 2013, 11:26:40 PM10/8/13
to ros-jap...@googlegroups.com
追加で申し訳ありません。
以下を記述するのを忘れていました。

上の設定を行ったあと、端末を開くたびに
bash: /share/rosbash/rosbash: そのようなファイルやディレクトリはありません
と表示されるようになりました。

これがエラーと関係しているのでしょうか。教えてください。

Kei Okada

unread,
Oct 8, 2013, 11:28:20 PM10/8/13
to ros-jap...@googlegroups.com
https://groups.google.com/forum/#!topic/ros-japan-users/KNWrciVWcDA
と同じ気がします.
sudo apt-get upgrade
を試してみてください.

2013/10/9 gryu39 <yukinosh...@gmail.com>:
> --
> このメールは Google グループのグループ「ROS JAPAN User's Group」の登録者に送られています。
> このグループから退会し、メールの受信を停止するには、ros-japan-use...@googlegroups.com
> にメールを送信します。
> その他のオプションについては、https://groups.google.com/groups/opt_out にアクセスしてください。

gryu39

unread,
Oct 8, 2013, 11:43:26 PM10/8/13
to ros-jap...@googlegroups.com
ありがとうございます。

https://groups.google.com/forum/#!topic/ros-japan-users/KNWrciVWcDA の質問を見て、
apt-getのupdateを試したのちにROSをインストールしてみたのですが、
エラーが変わらず表示していましたので、新たに質問をさせていただきました。
説明が足りなくて申し訳ありません。

そのインストールの際、表示は上の投稿でコピーペーストしたもののようになっていました。



Kei Okada

unread,
Oct 8, 2013, 11:52:03 PM10/8/13
to ros-jap...@googlegroups.com, ros-jap...@googlegroups.com
apt-get updateではなくapt-get upgradeが必要ですので、もう一度確認して見てください。

-----------
Kei Okada

2013/10/09 12:43、gryu39 <yukinosh...@gmail.com> のメッセージ:

gryu39

unread,
Oct 9, 2013, 12:43:27 AM10/9/13
to ros-jap...@googlegroups.com
ご指摘のとおり、updateとupgradeを間違えていました。

sudo apt-get upgrade
を行ったところ無事解決いたしました。

ありがとうございました。

Kinoshita Yuki

Reply all
Reply to author
Forward
0 new messages