Skip to content

add scripts to scan IDs and switch servo-on and servo-off#8

Open
snozawa wants to merge 1 commit into
arebgun:masterfrom
snozawa:add_new_scripts
Open

add scripts to scan IDs and switch servo-on and servo-off#8
snozawa wants to merge 1 commit into
arebgun:masterfrom
snozawa:add_new_scripts

Conversation

@snozawa

@snozawa snozawa commented Dec 4, 2013

Copy link
Copy Markdown

Hi, Arebgun,

I created two scripts.

  1. For scanning IDs
    dynamixel_driver/scripts/scan_ids.py is useful to set initial dynamixel ID.
    For example:
    $ rosrun dynamixel_7dof_arm scan_ids.py -p /dev/ttyUSB0 #<= check ID
    $ rosrun dynamixel_driver change_id.py -p /dev/ttyUSB0 1 7 #<= overwrite ID
  2. For switching between servo-on and servo-off
    dynamixel_driver/scripts/reset_torque.py resembles to set_torque.py.
    This script can be used to servo on or servo off.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just use: for idx in range(options.from_id, options.to_id + 1)?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just use: for idx in range(options.from_id, options.to_id + 1)?
It would be better to use range(options.from_id, options.to_id + 1).
(I did not know the functionality of range. )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants