start-jsk / rtmros_gazebo

gazebo simulation for rtmros robots
8 stars 24 forks source link

SampleRobot.confが/optのパスを書いている #205

Closed garaemon closed 9 years ago

garaemon commented 9 years ago

ソースからインストールしていると動かない http://wiki.ros.org/rtmros_common/Tutorials/HrpsysGazebo

https://github.com/start-jsk/rtmros_gazebo/blob/master/hrpsys_gazebo_general/config/SampleRobot.conf

k-okada commented 9 years ago

https://github.com/fkanehiro/hrpsys-base/pull/596 https://github.com/fkanehiro/openhrp3/issues/55#issuecomment-94127875

たぶんだけど,PROJECT_DIRとかが使えるんじゃないかと思います.

◉ Kei Okada

On Thu, Aug 20, 2015 at 11:40 AM, Ryohei Ueda notifications@github.com wrote:

ソースからインストールしていると動かない http://wiki.ros.org/rtmros_common/Tutorials/HrpsysGazebo

https://github.com/start-jsk/rtmros_gazebo/blob/master/hrpsys_gazebo_general/config/SampleRobot.conf

— Reply to this email directly or view it on GitHub https://github.com/start-jsk/rtmros_gazebo/issues/205.

garaemon commented 9 years ago

configureするよりPROJECT_DIR使ったほうがいいですかね?

https://github.com/garaemon/rtmros_gazebo/blob/samplerobot-configure/hrpsys_gazebo_general/config/SampleRobot.conf.in https://github.com/garaemon/rtmros_gazebo/blob/samplerobot-configure/hrpsys_gazebo_general/CMakeLists.txt#L90

k-okada commented 9 years ago

configureはやばくない?

◉ Kei Okada

On Thu, Aug 20, 2015 at 12:20 PM, Ryohei Ueda notifications@github.com wrote:

configureするよりPROJECT_DIR使ったほうがいいですかね?

https://github.com/garaemon/rtmros_gazebo/blob/samplerobot-configure/hrpsys_gazebo_general/config/SampleRobot.conf.in

https://github.com/garaemon/rtmros_gazebo/blob/samplerobot-configure/hrpsys_gazebo_general/CMakeLists.txt#L90

— Reply to this email directly or view it on GitHub https://github.com/start-jsk/rtmros_gazebo/issues/205#issuecomment-132872376 .

garaemon commented 9 years ago

コンパイル時にOpenHRP3のパスを解決してコピーしているだけなので、特に問題ない気がします

◉ ryohei

On Thu, Aug 20, 2015 at 12:24 PM, Kei Okada notifications@github.com wrote:

configureはやばくない?

◉ Kei Okada

On Thu, Aug 20, 2015 at 12:20 PM, Ryohei Ueda notifications@github.com wrote:

configureするよりPROJECT_DIR使ったほうがいいですかね?

https://github.com/garaemon/rtmros_gazebo/blob/samplerobot-configure/hrpsys_gazebo_general/config/SampleRobot.conf.in

https://github.com/garaemon/rtmros_gazebo/blob/samplerobot-configure/hrpsys_gazebo_general/CMakeLists.txt#L90

— Reply to this email directly or view it on GitHub < https://github.com/start-jsk/rtmros_gazebo/issues/205#issuecomment-132872376

.

— Reply to this email directly or view it on GitHub https://github.com/start-jsk/rtmros_gazebo/issues/205#issuecomment-132874013 .

k-okada commented 9 years ago

勿論わかっている人はいいんだろうけど,この手のものは,自動生成ファイルがドンドン出来て何がなんだかわからんくなって,結局生成物のファイルを変更してコミットする,という方向にしか行かない気がする.せっかくPROJECT_DIRとかあるんだから,うまく使える(使えるようにする)のがいいと思います.

◉ Kei Okada

On Thu, Aug 20, 2015 at 12:26 PM, Ryohei Ueda notifications@github.com wrote:

コンパイル時にOpenHRP3のパスを解決してコピーしているだけなので、特に問題ない気がします

◉ ryohei

On Thu, Aug 20, 2015 at 12:24 PM, Kei Okada notifications@github.com wrote:

configureはやばくない?

◉ Kei Okada

On Thu, Aug 20, 2015 at 12:20 PM, Ryohei Ueda notifications@github.com

wrote:

configureするよりPROJECT_DIR使ったほうがいいですかね?

https://github.com/garaemon/rtmros_gazebo/blob/samplerobot-configure/hrpsys_gazebo_general/config/SampleRobot.conf.in

https://github.com/garaemon/rtmros_gazebo/blob/samplerobot-configure/hrpsys_gazebo_general/CMakeLists.txt#L90

— Reply to this email directly or view it on GitHub <

https://github.com/start-jsk/rtmros_gazebo/issues/205#issuecomment-132872376

.

— Reply to this email directly or view it on GitHub < https://github.com/start-jsk/rtmros_gazebo/issues/205#issuecomment-132874013>

.

— Reply to this email directly or view it on GitHub https://github.com/start-jsk/rtmros_gazebo/issues/205#issuecomment-132874189 .

garaemon commented 9 years ago

confでmodel: $(PROJECT_DIR)/../model/sample1.wrl にしてみましたが、

loading $(PROJECT_DIR)/../model/sample1.wrl
model/sample1.wrl cannot be found.
Retrying to load the file as a standard VRML file
model/sample1.wrl cannot be found.
loading failed.
model/sample1.wrl cannot be found.
ModelLoaderException : model/sample1.wrl cannot be found.
[hes] failed to load model[$(PROJECT_DIR)/../model/sample1.wrl]

といわれますね. xmlか何かに書かないといけないですか

garaemon commented 9 years ago

$PROJECT_DIRが効くのはhrpsys_config.pyとProject.cppだけでしょうか.

k-okada commented 9 years ago

なんと,そうでした.ということで,https://github.com/fkanehiro/openhrp3/pull/68

◉ Kei Okada

On Thu, Aug 20, 2015 at 12:51 PM, Ryohei Ueda notifications@github.com wrote:

$PROJECT_DIRが効くのはhrpsys_config.pyとProject.cppだけでしょうか.

— Reply to this email directly or view it on GitHub https://github.com/start-jsk/rtmros_gazebo/issues/205#issuecomment-132876314 .

garaemon commented 9 years ago

solved by https://github.com/fkanehiro/openhrp3/pull/68 and https://github.com/start-jsk/rtmros_gazebo/pull/211