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

[Package "my_dynamixel_workbench_tutorial" Not Running] #297

Closed
Ashok12698 opened this issue Jun 4, 2020 · 2 comments
Closed

[Package "my_dynamixel_workbench_tutorial" Not Running] #297

Ashok12698 opened this issue Jun 4, 2020 · 2 comments
Assignees

Comments

@Ashok12698
Copy link

ISSUE TEMPLATE ver. 1.0.0

Before you open issue, please refer to ROBOTIS e-Manual

  1. How to setup? (ex, U2D2, OpenCR,...)
    4 dynamixels 'XL430W250' connected in daisy-chain to RPi3 through U2D2

  2. Which Dynamixel have you used? and how many? (Please describe below format to all connected Dynamixels)

    • Model Name XL430W250

    • ID 1, 2, 3, 4

    • Baud Rate of Dynamixels 57600

    • Protocol Version 2.0

  3. Write down the commands you used in order

I am following this link to setup:
https://namesdir.com/mirrors/wiki.ros.org/dynamixel_workbench_controllers(2f)Tutorials(2f)VelocityControl.html

This commands I applied: 
$ cd ~/catkin_ws/src
$ catkin_create_pkg my_dynamixel_workbench_tutorial std_msgs roscpp
$ cd my_dynamixel_workbench_tutorial
$ mkdir launch
$ cd launch
$ gedit velocity_control.launch

launch file:
<launch>
  <arg name="device_name"      default="/dev/ttyUSB0"/>
  <arg name="baud_rate"        default="57600"/>
  <arg name="protocol_version" default="2.0"/>

  <arg name="left_idA"            default="1"/>
  <arg name="left_idB"            default="2"/>
  <arg name="right_idA"         default="3"/>
  <arg name="right_idB"          default="4"/>

  <param name="device_name"      value="$(arg device_name)"/>
  <param name="baud_rate"        value="$(arg baud_rate)"/>
  <param name="protocol_version" value="$(arg protocol_version)"/>

  <param name="left_idA"           value="$(arg left_idA)"/>
  <param name="left_idB"          value="$(arg left_idB)"/>
  <param name="right_idA"          value="$(arg right_idA)"/>
  <param name="right_idB"          value="$(arg right_idB)"/>

  <node name="velocity_control_example" pkg="dynamixel_workbench_controllers" type="velocity_control" required="true" output="screen"/>
</launch>

$ sudo chmod a+rw /dev/ttyUSB0
$ cd ~/catkin_ws && catkin_make
$ roslaunch my_dynamixel_workbench_tutorial velocity_control.launch
**'roslaunch my_dynamixel_workbench_tutorial velocity_control.launch'**
  1. Copy and Paste your error message on terminal
![image](https://user-images.githubusercontent.com/11657541/83705730-aee41880-a650-11ea-95f0-cb3aaf22ba02.png)

SUMMARY
========
  1. Please, describe detailedly what difficulty you are in

    • HERE
      I am unable to run this package 'my_dynamixel_workbench_tutorial' after build.

Is there anything I missed to check here. Please suggest. Thanks.

@yun-goon yun-goon self-assigned this Jan 16, 2025
@yun-goon
Copy link

Hi @Ashok12698
Sorry for the late reply.

Problem Analysis:

  1. Missing Package Installation or Build Issue:
  • The package my_dynamixel_workbench_tutorial may not have been built correctly or sourced properly.
  1. Incorrect Package or Launch File Path:
  • The specified velocity_control.launch file may not exist in the launch directory of the my_dynamixel_workbench_tutorial package.
  1. ROS Environment Not Sourced:
  • ROS may not be able to find the package because the environment setup file (setup.bash) was not sourced.

Steps to Resolve:

  1. Check Package Existence
    Verify that the my_dynamixel_workbench_tutorial package exists in your workspace:
ls ~/catkin_ws/src/

Ensure that the my_dynamixel_workbench_tutorial folder is listed.
2. Ensure Launch File is in Correct Path
Verify that the velocity_control.launch file exists in the launch folder of the package:

ls ~/catkin_ws/src/my_dynamixel_workbench_tutorial/launch/

If the file is missing, re-create it.
3. Rebuild the Workspace
Ensure the workspace is built correctly:

cd ~/catkin_ws
catkin_make
  1. Source the Workspace
    Source the workspace setup file to make ROS aware of your package:
source ~/catkin_ws/devel/setup.bash

Let me know if you encounter further issues or need assistance!

@yun-goon
Copy link

yun-goon commented Feb 3, 2025

This issue will be closed due to prolonged inactivity. If the problem persists, feel free to reopen it, and we will address it promptly. Thank you for your understanding!

@yun-goon yun-goon closed this as completed Feb 3, 2025
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

No branches or pull requests

2 participants