ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

rosserial_arduino catkin_make error: unparsed argument: Port;/dev/ttyACM0

asked 2021-08-11 04:23:21 -0600

jonasfovea gravatar image

updated 2021-08-12 00:58:56 -0600

miura gravatar image

I am trying to get the rosserial_arduino tutorial to work (tutorial here).

The only change I made was to change the board type from "leonardo" to "OpenCR" since I want to use the Robotis OpenCR board.

The execution of catkin_make helloworld_firmware_hello gives me the following error:

CMake Error at /opt/ros/noetic/share/rosserial_arduino/arduino-cmake/cmake/Platform/Arduino.cmake:2073 (message):
  unparsed argument: Port;/dev/ttyACM0
Call Stack (most recent call first):
  /opt/ros/noetic/share/rosserial_arduino/arduino-cmake/cmake/Platform/Arduino.cmake:739 (error_for_unparsed)
  /opt/ros/noetic/share/rosserial_arduino/arduino-cmake/cmake/Platform/Arduino.cmake:459 (parse_generator_arguments)
  CMakeLists.txt:7 (generate_arduino_firmware)

Has anyone else encountered this problem before?

My ROS-noetic install is from yesterday, so everything should be up to date.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2021-08-12 01:02:55 -0600

miura gravatar image

updated 2021-08-12 07:08:38 -0600

I think /dev/ttyACM0 does not exist.

Without connecting the Arduino to the machine running ROS, /dev/ttyACM0 will not appear. Also, depending on the Arduino, it may have a different name, such as /dev/ttyUSB0.


I watched the tutorial. I think you're making a typo.

Did you type the semicolon incorrectly?

Port;/dev/ttyACM0 -> PORT /dev/ttyACM0

edit flag offensive delete link more


The port is correct. When I plug in the board I the device /dev/ttyACM0 appears just as expected. While executing the catkin_make the board was plugged into my machine.

jonasfovea gravatar image jonasfovea  ( 2021-08-12 03:27:11 -0600 )edit

@jonasfovea Thank you for the confirmation. Answer updated.

miura gravatar image miura  ( 2021-08-12 07:09:11 -0600 )edit

Thanks a lot! That was a very stupid mistake ^^

Have a great day!

jonasfovea gravatar image jonasfovea  ( 2021-08-12 07:23:46 -0600 )edit

answered 2021-08-12 01:08:50 -0600

electrophod gravatar image

Can you let us know how did you try to run the node? The exact command. Also, as @miura says, check if you're passing the correct USB port as an argument.

edit flag offensive delete link more



I followed the instructions in the Tutorial and got the error as I executed catkin_make helloworld_firmware_hello. I named everything exactly as in the tutorial.

jonasfovea gravatar image jonasfovea  ( 2021-08-12 03:26:55 -0600 )edit

Question Tools


Asked: 2021-08-11 04:20:32 -0600

Seen: 127 times

Last updated: Aug 12 '21