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

Autoware camera-lidar-calibration Error. [closed]

asked 2020-11-26 04:09:15 -0600

ken_koba gravatar image

updated 2021-01-05 04:39:34 -0600

I trying camera-lidar calibration.
Method is below.

But Error when "How to launch" No.3. (An image viewer will be displayed.)
Error message is below.

ERROR: cannot launch node of type [calibration_publisher/calibration_publisher]: calibration_publisher  
ROS path [0]=/opt/ros/melodic/share/ros  
ROS path [1]=/home/ubuntu/autoware_sh/  
ROS path [2]=/home/ubuntu/autoware_sh/  
ROS path [3]=/home/ubuntu/autoware_sh/  
ROS path [4]=/opt/ros/melodic/share  
ERROR: cannot launch node of type [image_processor/image_rectifier]: image_processor  
ROS path [0]=/opt/ros/melodic/share/ros  
ROS path [1]=/home/ubuntu/autoware_sh/  
ROS path [2]=/home/ubuntu/autoware_sh/  
ROS path [3]=/home/ubuntu/autoware_sh/  
ROS path [4]=/opt/ros/melodic/share

How can I solve it?

 OS:ubuntu 18.04
 Platform:Jetson AGX Xavier
 Autoware:1.14.0 (source build)

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by ken_koba
close date 2021-01-07 17:11:17.249428

1 Answer

Sort by » oldest newest most voted

answered 2020-12-07 11:06:10 -0600

Josh Whitley gravatar image

This looks like an issue with sourcing. When the instructions say "in a sourced terminal," they mean you must first run:

source ~/your_autoware_workspace/devel/setup.bash
edit flag offensive delete link more


Thank you for the information.
But Already I tried it and Does not solve.
I'm using the following command and setup.bash, is there a problem?

cd /home/mypc/
source devel/setup.bash (Details is below)
roslaunch autoware_camera_lidar_calibrator camera_lidar_calibration.launch

#!/usr/bin/env bash
# generated from catkin/cmake/templates/
# source from same directory as this file
_CATKIN_SETUP_DIR=$(builtin cd "dirname "${BASH_SOURCE[0]}"" > /dev/null && pwd)

ken_koba gravatar image ken_koba  ( 2020-12-08 20:02:48 -0600 )edit

You should not cd this file but source it instead:

source /home/mypc/ source devel/setup.bash

Also, what command are you using to build your workspace?

Josh Whitley gravatar image Josh Whitley  ( 2020-12-28 07:53:14 -0600 )edit

I tried below. But does not solve.
source ~/your_autoware_workspace/devel/setup.bash
source /home/mypc/ source devel/setup.bash

Create the workspace by the following method.
$ mkdir -p

I referred to the following.
(How to build.For 1.12.0 and Newer)

ken_koba gravatar image ken_koba  ( 2021-01-04 20:25:52 -0600 )edit

Do not use the build folder in your workspace. You do not need anything from the build folder, only the devel folder.

To build:

$ cd ~
$ mkdir -p
$ wget -O ""
$ vcs import src <
$ rosdep update
$ rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
$ AUTOWARE_COMPILE_WITH_CUDA=1 colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release

To run intrinsic calibration:

$ cd ~/
$ source devel/setup.bash
$ rosrun autoware_camera_lidar_calibrator --square SQUARE_SIZE --size MxN image:=/image_topic

After this, continue with instructions from

Josh Whitley gravatar image Josh Whitley  ( 2021-01-04 21:39:32 -0600 )edit

Thank you for the information.

"To build" is pass.
But "To run intrinsic calibration:" is Error

$ cd ~/  
$ source devel/setup.bash  
bash: devel/setup.bash: No such file or directory.

The contents of the folder are as follows.

The source folder certainly does not exist.
Is it a matter of installation?

ken_koba gravatar image ken_koba  ( 2021-01-04 23:35:12 -0600 )edit

@ken_koba please do source install/setup.bash

instead of sourcing from the devel folder

sgermanserrano gravatar image sgermanserrano  ( 2021-01-05 09:48:44 -0600 )edit

Sorry, yes, @sgermanserrano is correct. I forgot we build with colcon instead of catkin.

Josh Whitley gravatar image Josh Whitley  ( 2021-01-05 10:24:55 -0600 )edit

@sgermanserrano,@Josh Whitley
Thank you for the information.
The problem has been resolved.

But could not resize the image_view2 window.
I want to small.
What should i do?
The file I'm using is sample2's extrinsic.bag.

ken_koba gravatar image ken_koba  ( 2021-01-07 02:01:43 -0600 )edit

Question Tools

1 follower


Asked: 2020-11-26 02:50:29 -0600

Seen: 771 times

Last updated: Jan 05 '21