Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

motor_power_status == "1"のときにdiff_drive_controllerを直接操作できないことを明記する #20

Open
Tiryoh opened this issue Oct 15, 2018 · 1 comment
Labels
Type: Documentation Documentation only changes
Milestone

Comments

@Tiryoh
Copy link
Contributor

Tiryoh commented Oct 15, 2018

motor_power_status == "1" のときに controller_vel_publisher.py が使えない

if motor_power_status == "1":
with open(lfile, "r") as lf, \
open(rfile, "r") as rf:
lhz_str = lf.readline().rstrip()
rhz_str = rf.readline().rstrip()
if len(lhz_str) == 0:
lhz = 0
else:
try:
lhz = int(lhz_str)
except:
lhz = 0
if len(rhz_str) == 0:
rhz = 0
else:
try:
rhz = int(rhz_str)
except:
rhz = 0
vel.linear.x = (lhz + rhz) * 9 * math.pi / 160000.0
vel.angular.z = (rhz - lhz) * math.pi / 800.0
print(vel)
pub.publish(vel)

@Tiryoh
Copy link
Contributor Author

Tiryoh commented May 20, 2020

関連 #30
バーチャルデバイスファイル機能をオプションにし、バーチャルデバイスファイル機能が有効なときはdiff_drive_controllerのcmd_velは直接操作しないことにします。

@Tiryoh Tiryoh added the Type: Documentation Documentation only changes label May 20, 2020
@Tiryoh Tiryoh changed the title motor_power_status == "1"のときにcmd_velを受け付けない motor_power_status == "1"のときにdiff_drive_controllerを直接操作できないことを明記する May 20, 2020
@Tiryoh Tiryoh added this to the Release 1.0.0 milestone May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Documentation Documentation only changes
Projects
None yet
Development

No branches or pull requests

1 participant