直接在命令行运行txSimSDK_linux中的my_module.py,发现没有调用init、step等函数
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 465
- Forks
- 122
- PR merge metrics
- No merged PRs in 30d
Description
在数据管理->主车算法管理中,将txSimSDK_linux中的my_module.py添加到自定义模组中,可以正常运行。
于是想着是否可以直接在命令行中运行: python3 my_module.py --name my_module,结果不能看到init、reset、step等函数内的打印,似乎是运行到了txsim_module.py的SimModuleService的serve的self.func_serve。
请问我该如何操作,能够在命令行正常运行?
备注:txsim_module是从simcore/framework/src/api/python/txsim_module.py获取的,并将其中的_tadsim_install_dir修改为了本地tadsim的实际路径/opt/tadsim/resources/app。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with txSimSDK_linux/my_module.py and the copied simcore/framework/src/api/python/txsim_module.py, especially SimModuleService.serve and its self.func_serve path, then compare direct command-line execution with the custom-module execution described in the issue. Done means the command-line invocation reliably reaches and prints from init, reset, and step, or the required invocation is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100