Robotics StackExchange | Archived questions

ROS port roslaunch (IMU) problem /dev/ttyUSB0 to /dev/ttyACM0 ?

Hi,

I am new to ROS but i am trying to observe my IMU system it's a 9dof razor IMU SEN 140001. I followed this tutorial : http://wiki.ros.org/razor_imu_9dof I have actually a problem who's that everytime i do this command :

roslaunch razor_imu_9dof razor-pub-and-display.launch

I got my * /imu_node/port: /dev/ttyUSB0 into my parameters however i would like it to be ttyACM0

I tried a lot of things, my_razor.yaml is already like this :

## USB port
port: /dev/ttyACM0

Also my .launch code is this one :

<launch>
  <arg name="razor_config_file" default="$(find razor_imu_9dof)/config/my_razor.yaml"/>
  <node pkg="razor_imu_9dof" type="imu_node.py" name="imu_node" output="screen">
    <rosparam file="$(arg razor_config_file)" command="load"/>
  </node>
  <node pkg="razor_imu_9dof" type="display_3D_visualization.py" name="display_3D_visualization_node" output="screen">
  </node>
</launch>

I have also tried to go in the imunode to modify the port but it didn't change anything. And to use the command : `rosparam set imunode/port /dev/ttyACM0` but it didn't worked. I feel like everytime i roslaunch whatever I do it set the port to USB0

Could someone help ? I tried a lot of things i saw on Internet so I am finally posting here. Thank you for your help.

Asked by lucasvia on 2018-11-26 13:30:05 UTC

Comments

Can you run this launch file and output everything ROS outputs during startup (parametars, nodes) ? Also please check if the paths are correct as you are probably using this which has some launch examples but is also missing a my_razor.yaml file.

Asked by Dyson sphere on 2018-12-26 23:59:42 UTC

Answers

You can try to solve it with this website:http://www.corvin.cn/428.html

Asked by terminal on 2018-12-26 20:35:38 UTC

Comments

Please don't post link-only answers. If the website goes away then this answer will be of no help.

Asked by jayess on 2018-12-26 22:12:43 UTC

Install minicom

$ sudo apt-get install minicom

After installation, Use this

$ sudo minicom -s

It will give a list, in that select Serial port setup. Here add Serial device information (in your case ttyACM0) and save the configuration. It will work. All the best!

Asked by pavankumarbn on 2018-12-27 00:20:43 UTC

Comments

nano my_razor.yaml put there: port: /dev/ttyACM0

Asked by zoldaten on 2022-11-16 13:36:25 UTC

Comments