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

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

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

jonasfovea gravatar image

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

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
1

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

miura gravatar image

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

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.

UPDATE

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

Comments

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 -0500 )edit

@jonasfovea Thank you for the confirmation. Answer updated.

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

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

Have a great day!

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

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

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

Comments

1

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 -0500 )edit

Question Tools

Stats

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

Seen: 129 times

Last updated: Aug 12 '21