dusty-nv / jetbot_ros Goto Github PK
View Code? Open in Web Editor NEWROS nodes and Gazebo model for NVIDIA JetBot with Jetson Nano
License: MIT License
ROS nodes and Gazebo model for NVIDIA JetBot with Jetson Nano
License: MIT License
Observation:
Rather than: /home/nvidia/workspace...
Terminal Session text follows:
vern@JetBotAI:$ rosrun jetbot_ros jetbot_motors.py$
Traceback (most recent call last):
File "/home/vern/workspace/catkin_ws/src/jetbot_ros/scripts/jetbot_motors.py", line 75, in
motor_driver = Adafruit_MotorHAT(i2c_bus=1)
File "/home/vern/.local/lib/python2.7/site-packages/Adafruit_MotorHAT/Adafruit_MotorHAT_Motors.py", line 231, in init
self._pwm = PWM(addr, debug=False, i2c=i2c, i2c_bus=i2c_bus)
File "/home/vern/.local/lib/python2.7/site-packages/Adafruit_MotorHAT/Adafruit_PWM_Servo_Driver.py", line 59, in init
self.setAllPWM(0, 0)
File "/home/vern/.local/lib/python2.7/site-packages/Adafruit_MotorHAT/Adafruit_PWM_Servo_Driver.py", line 95, in setAllPWM
self.i2c.write8(self.__ALL_LED_ON_L, on & 0xFF)
File "/home/vern/.local/lib/python2.7/site-packages/Adafruit_GPIO/I2C.py", line 114, in write8
self._bus.write_byte_data(self._address, register, value)
File "/home/vern/.local/lib/python2.7/site-packages/Adafruit_PureIO/smbus.py", line 268, in write_byte_data
self._device.write(data)
IOError: [Errno 121] Remote I/O error
vern@JetBotAI:
I am following the jetbot_ros tutorials step by step, while building jetson-inference, I am getting this error though,
CUDA_CUDART_LIBRARY (ADVANCED)
linked by target "jetson-inference" in directory /home/aryaman/workspace/jetson-inference
linked by target "imagenet-console" in directory /home/aryaman/workspace/jetson-inference/imagenet-console
linked by target "imagenet-camera" in directory /home/aryaman/workspace/jetson-inference/imagenet-camera
linked by target "detectnet-console" in directory /home/aryaman/workspace/jetson-inference/detectnet-console
linked by target "detectnet-camera" in directory /home/aryaman/workspace/jetson-inference/detectnet-camera
linked by target "segnet-console" in directory /home/aryaman/workspace/jetson-inference/segnet-console
linked by target "segnet-camera" in directory /home/aryaman/workspace/jetson-inference/segnet-camera
linked by target "trt-bench" in directory /home/aryaman/workspace/jetson-inference/trt-bench
linked by target "trt-console" in directory /home/aryaman/workspace/jetson-inference/trt-console
linked by target "jetson-utils" in directory /home/aryaman/workspace/jetson-inference/utils
CUDA_TOOLKIT_INCLUDE (ADVANCED)
used as include directory in directory /home/aryaman/workspace/jetson-inference
used as include directory in directory /home/aryaman/workspace/jetson-inference
used as include directory in directory /home/aryaman/workspace/jetson-inference
used as include directory in directory /home/aryaman/workspace/jetson-inference
used as include directory in directory /home/aryaman/workspace/jetson-inference
used as include directory in directory /home/aryaman/workspace/jetson-inference
used as include directory in directory /home/aryaman/workspace/jetson-inference
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/imagenet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/detectnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/segnet-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-bench
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-bench
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-bench
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-bench
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-bench
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-bench
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-bench
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-bench
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-bench
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-bench
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-bench
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-bench
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-bench
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-bench
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/trt-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/docs
used as include directory in directory /home/aryaman/workspace/jetson-inference/docs
used as include directory in directory /home/aryaman/workspace/jetson-inference/docs
used as include directory in directory /home/aryaman/workspace/jetson-inference/docs
used as include directory in directory /home/aryaman/workspace/jetson-inference/docs
used as include directory in directory /home/aryaman/workspace/jetson-inference/docs
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/gst-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/gst-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/gst-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/gst-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/gst-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/gst-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/gst-camera
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/v4l2-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/v4l2-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/v4l2-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/v4l2-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/v4l2-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/v4l2-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/v4l2-console
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/v4l2-display
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/v4l2-display
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/v4l2-display
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/v4l2-display
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/v4l2-display
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/v4l2-display
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/camera/v4l2-display
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/display/gl-display-test
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/display/gl-display-test
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/display/gl-display-test
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/display/gl-display-test
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/display/gl-display-test
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/display/gl-display-test
used as include directory in directory /home/aryaman/workspace/jetson-inference/utils/display/gl-display-test
-- Configuring incomplete, errors occurred!
See also "/home/aryaman/workspace/jetson-inference/build/CMakeFiles/CMakeOutput.log".
Not able to understand the error, please help.
NOTE: Is this because I do not have CUDA installed?
Hi, I need to use the jetbot_camera portion, so I built jetbot_inference, installed dependencies for ros_deep_learning, and encountered errors while building jetbot_ros. Building it on the jetson nano with ros melodic. catkin_make on jetbot_ros returned with:
`Base path: /home/jetson/catkin_ws
Source space: /home/jetson/catkin_ws/src
Build space: /home/jetson/catkin_ws/build
Devel space: /home/jetson/catkin_ws/devel
Install space: /home/jetson/catkin_ws/install
[ 25%] Linking CXX executable /home/jetson/catkin_ws/devel/lib/jetbot_ros/jetbot_camera
CMakeFiles/jetbot_camera.dir/src/image_converter.cpp.o: In function imageConverter::Convert(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&)': image_converter.cpp:(.text+0x980): undefined reference to
cudaConvertColor(void*, imageFormat, void*, imageFormat, unsigned long, unsigned long, float2 const&)'
CMakeFiles/jetbot_camera.dir/src/image_converter.cpp.o: In function imageConverter::Convert(sensor_msgs::Image_<std::allocator<void> >&, imageFormat, float4*)': image_converter.cpp:(.text+0xd1c): undefined reference to
cudaConvertColor(void*, imageFormat, void*, imageFormat, unsigned long, unsigned long, float2 const&)'
collect2: error: ld returned 1 exit status
jetbot_ros/CMakeFiles/jetbot_camera.dir/build.make:167: recipe for target '/home/jetson/catkin_ws/devel/lib/jetbot_ros/jetbot_camera' failed
make[2]: *** [/home/jetson/catkin_ws/devel/lib/jetbot_ros/jetbot_camera] Error 1
CMakeFiles/Makefile2:1176: recipe for target 'jetbot_ros/CMakeFiles/jetbot_camera.dir/all' failed
make[1]: *** [jetbot_ros/CMakeFiles/jetbot_camera.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
`
output when running roscore seems ok (see below), however when running eiither
Any advice would be greatly appreciated.
(
btw, motors works fine when I run a simple python script like -
from adafruit_motorkit import MotorKit
kit = MotorKit()
kit.motor1.throttle = SOME_VALUE
)
this is the output when running roscore -
... logging to /home/jetbot/.ros/log/e60c8048-80dc-11ea-a8ce-72b5f773b75d/roslaunch-jetbot-10299.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://jetbot:35987/
ros_comm version 1.14.5
PARAMETERS
NODES
auto-starting new master
process[master]: started with pid [10347]
ROS_MASTER_URI=http://jetbot:11311/
setting /run_id to e60c8048-80dc-11ea-a8ce-72b5f773b75d
process[rosout-1]: started with pid [10358]
started core service [/rosout]
I am getting the following error.
jetbot@jetson-4-3:~/jetbot_ros$ docker/run.sh
reading L4T version from /etc/nv_tegra_release
L4T BSP Version: L4T R32.3.1
CONTAINER: dustynv/jetbot_ros:foxy-r32.3.1
DEV_VOLUME:
DATA_VOLUME: --volume /home/jetbot/jetbot_ros/data:/workspace/src/jetbot_ros/data
USER_VOLUME:
USER_COMMAND:
V4L2_DEVICES:
localuser:root being added to access control list
xauth: file /tmp/.docker.xauth does not exist
Unable to find image 'dustynv/jetbot_ros:foxy-r32.3.1' locally
docker: Error response from daemon: manifest for dustynv/jetbot_ros:foxy-r32.3.1 not found: manifest unknown: manifest unknown.
I am sure I need something else before I run the shell command. Please help.
Installing jetson_ros on L4T r32.2, encountered the following, (even after successfully installing jetson-utils). I would appreciate your assistance as this ROS package on Jetson Jetson Nano looks interesting!
jetbot@jetbotROS:~/workspace/catkin_ws$ catkin_make
Base path: /home/jetbot/workspace/catkin_ws
Source space: /home/jetbot/workspace/catkin_ws/src
Build space: /home/jetbot/workspace/catkin_ws/build
Devel space: /home/jetbot/workspace/catkin_ws/devel
Install space: /home/jetbot/workspace/catkin_ws/install
...
...
-- ~~ traversing 1 packages in topological order:
-- ~~ - ros_deep_learning
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'ros_deep_learning'
-- ==> add_subdirectory(ros_deep_learning)
CMake Error at ros_deep_learning/CMakeLists.txt:14 (find_package):
By not providing "Findjetson-utils.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"jetson-utils", but CMake did not find one.
Could not find a package configuration file provided by "jetson-utils" with
any of the following names:
jetson-utilsConfig.cmake
jetson-utils-config.cmake
Add the installation prefix of "jetson-utils" to CMAKE_PREFIX_PATH or set
"jetson-utils_DIR" to a directory containing one of the above files. If
"jetson-utils" provides a separate development package or SDK, be sure it
has been installed.
-- Configuring incomplete, errors occurred!
See also "/home/jetbot/workspace/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/jetbot/workspace/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
jetbot@jetbotROS:~/workspace/catkin_ws$
Then I checked the Environment that didn't have a jetson_uitls_DIR entry
jetbot@jetbotROS:/workspace/catkin_ws$printenv|grep jetson_utils_DIR/workspace/catkin_ws$
jetbot@jetbotROS:
When first running docker/run.sh command following error shows.
docker: Error response from daemon: manifest for dustynv/jetbot_ros:foxy-r32.7.4 not found: manifest unknown: manifest unknown.
So is this not compatible with the Jetson Nano B01 version 4.3 jetpack at all?
I had trouble installing the pytorch from the command line.
pip install torch torchvision
The error message below occurs after processing. I would appreciate your assistance.
$ pip install torch torchvision
Collecting torch
Downloading https://files.pythonhosted.org/packages/f8/02/880b468bd382dc79896eaecbeb8ce95e9c4b99a24902874a2cef0b562cea/torch-0.1.2.post2.tar.gz (128kB)
100% |████████████████████████████████| 133kB 1.7MB/s
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/torch.egg-info
writing requirements to pip-egg-info/torch.egg-info/requires.txt
writing pip-egg-info/torch.egg-info/PKG-INFO
writing top-level names to pip-egg-info/torch.egg-info/top_level.txt
writing dependency_links to pip-egg-info/torch.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/torch.egg-info/SOURCES.txt'
error: package directory 'torch/cuda' does not exist
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fl4Xuy/torch/
Installing jetbot-ros on the L4T r32.2 image after successfully installing jetbot_ros and ROS Melodic. Testing command rosrun jetbot_ros jetbot_motors.py, the error message below occurs after processing. I would appreciate your assistance.
i had run : sudo usermod -aG i2c $USER(user name)
error is below
Traceback (most recent call last):
File "/home/jetbot/workspace/catkin_ws/src/jetbot_ros/scripts/jetbot_motors.py", line 75, in
motor_driver = Adafruit_MotorHAT(i2c_bus=1)
File "/home/jetbot/.local/lib/python2.7/site-packages/Adafruit_MotorHAT/Adafruit_MotorHAT_Motors.py", line 231, in init
self._pwm = PWM(addr, debug=False, i2c=i2c, i2c_bus=i2c_bus)
File "/home/jetbot/.local/lib/python2.7/site-packages/Adafruit_MotorHAT/Adafruit_PWM_Servo_Driver.py", line 57, in init
self.i2c = get_i2c_device(address, i2c, i2c_bus)
File "/home/jetbot/.local/lib/python2.7/site-packages/Adafruit_MotorHAT/Adafruit_PWM_Servo_Driver.py", line 23, in get_i2c_device
return I2C.get_i2c_device(address, busnum=i2c_bus)
File "/home/jetbot/.local/lib/python2.7/site-packages/Adafruit_GPIO/I2C.py", line 64, in get_i2c_device
return Device(address, busnum, i2c_interface, **kwargs)
File "/home/jetbot/.local/lib/python2.7/site-packages/Adafruit_GPIO/I2C.py", line 97, in init
self._bus = Adafruit_PureIO.smbus.SMBus(busnum)
File "/home/jetbot/.local/lib/python2.7/site-packages/Adafruit_PureIO/smbus.py", line 105, in init
self.open(bus)
File "/home/jetbot/.local/lib/python2.7/site-packages/Adafruit_PureIO/smbus.py", line 130, in open
self._device = open('/dev/i2c-{0}'.format(bus), 'r+b', buffering=0)
IOError: [Errno 13] Permission denied: '/dev/i2c-1'
The camera image being published to ROS by jetbot_camera.cpp is upside-down. When reading the camera image directly with gstreamer with flip_method=0 the image the right way up, so the camera orientation on my robot is correct. Is it possible to have the image orientation published to ROS the same as gstreamer or add parameter similar to flip_method to the image publisher?
Currently have to either rotate the published image in ROS or rotate the camera when running ROS vs. non-ROS code.
When i am writing this code i got an error:
Collecting Adafruit-MotorHAT
Using cached https://files.pythonhosted.org/packages/f3/4a/550e347249b21ad82d0dd1de7f6d7af8e5b06adfe2226fd1965f6cfa80aa/Adafruit_MotorHAT-1.4.0-py2-none-any.whl
Collecting Adafruit-GPIO>=0.7 (from Adafruit-MotorHAT)
Could not find a version that satisfies the requirement Adafruit-GPIO>=0.7 (from Adafruit-MotorHAT) (from versions: )
No matching distribution found for Adafruit-GPIO>=0.7 (from Adafruit-MotorHAT)
I don't have jetbot but i need PCA9685 driver.
Can you help me?
Is there anyway to configure the ros_deep_learning node to run with ros node usb_cam which outputs in rgb9 format instead of bgr format?
I was trying to use Rviz and found Rviz does not support the sdf files file format. The Robot_description parameter can only handle the URDF formatted files. In addition, you will probably want to use the TF and robot_state_publisher...etc. Can the sdf be converted to a URDF?
I am attempting to go through the build and install process for jetbot_ros but it is failing at the "Build jetbot_ros" phase with the following build error:
Note:
JetBot Image Version: 0.4.3 / JetPack 4.5 4Gb
Did I perhaps miss a step?
The library file libnvbuf_utils is installed on the system though.
ls -la /usr/lib/aarch64-linux-gnu/tegra/libnvbuf_utils.so lrwxrwxrwx 1 root root 23 Jan 15 2021 /usr/lib/aarch64-linux-gnu/tegra/libnvbuf_utils.so -> libnvbuf_utils.so.1.0.0
Error seen:
`jetbot@nano-4gb-jp45:~/workspace/catkin_ws$ catkin_make
Base path: /home/jetbot/workspace/catkin_ws
Source space: /home/jetbot/workspace/catkin_ws/src
Build space: /home/jetbot/workspace/catkin_ws/build
Devel space: /home/jetbot/workspace/catkin_ws/devel
Install space: /home/jetbot/workspace/catkin_ws/install
-- Using CATKIN_DEVEL_PREFIX: /home/jetbot/workspace/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/jetbot/workspace/catkin_ws/devel;/opt/ros/melodic
-- This workspace overlays: /home/jetbot/workspace/catkin_ws/devel;/opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2")
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/jetbot/workspace/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.17")
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.29
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 2 packages in topological order:
-- ~~ - jetbot_ros
-- ~~ - ros_deep_learning
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'jetbot_ros'
-- ==> add_subdirectory(jetbot_ros)
-- +++ processing catkin package: 'ros_deep_learning'
-- ==> add_subdirectory(ros_deep_learning)
detected ROS_DISTRO=ROS_MELODIC
detected ROS1 (catkin_make)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jetbot/workspace/catkin_ws/build
[ 3%] Linking CXX executable /home/jetbot/workspace/catkin_ws/devel/lib/ros_deep_learning/segnet
[ 7%] Linking CXX executable /home/jetbot/workspace/catkin_ws/devel/lib/jetbot_ros/jetbot_camera
/usr/bin/ld: cannot find -lnvbuf_utils
collect2: error: ld returned 1 exit status
jetbot_ros/CMakeFiles/jetbot_camera.dir/build.make:168: recipe for target '/home/jetbot/workspace/catkin_ws/devel/lib/jetbot_ros/jetbot_camera' failed
make[2]: *** [/home/jetbot/workspace/catkin_ws/devel/lib/jetbot_ros/jetbot_camera] Error 1
CMakeFiles/Makefile2:615: recipe for target 'jetbot_ros/CMakeFiles/jetbot_camera.dir/all' failed
make[1]: *** [jetbot_ros/CMakeFiles/jetbot_camera.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 18%] Built target segnet
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j2 -l2" failed
`
but i had run :
pip install Adafruit-MotorHAT
pip3 install Adafruit-MotorHAT
where problem?
Jetson Nano (Developer Kit Vesion) - Jetpack 4.4.1 [L4T 32.4.4]
I've followed the configuration, installation, and build steps as they were listed, but I get IOError: [Errno 121] Remote I/O error for the following commands.
$ rosrun jetbot_ros jetbot_oled.py
$ rosrun jetbot_ros jetbot_motors.py
I've double checked my connections and tried running my own script to test the qwiic oled. I'm able to connect and use the qwiic oled using the sparkfun-qwiic-micro-oled Python3 library.
import qwiic_micro_oled
my_oled = qwiic_micro_oled.QwiicMicroOled()
my_oled.begin()
my_oled.clear(my_oled.PAGE)
my_oled.print("Hello")
my_oled.display()
However, it doesn't seem to work with the Adafruit_SSD1306 library.
The fact that I'm able to connect and use the qwiic oled leads me to believe that this is not a connection issue... However, I am a beginner to these things so I may be wrong. Please let me know if I should provide more information
The error is as follows for $ rosrun jetbot_ros jetbot_oled.py
:
Traceback (most recent call last):
File "/home/jetbot/jbworkspace/catkin_ws/src/jetbot_ros/scripts/jetbot_oled.py", line 43, in
disp.begin()
File "/home/jetbot/.local/lib/python2.7/site-packages/Adafruit_SSD1306/SSD1306.py", line 148, in begin
self._initialize()
File "/home/jetbot/.local/lib/python2.7/site-packages/Adafruit_SSD1306/SSD1306.py", line 292, in _initialize
self.command(SSD1306_DISPLAYOFF) # 0xAE
File "/home/jetbot/.local/lib/python2.7/site-packages/Adafruit_SSD1306/SSD1306.py", line 129, in command
self._i2c.write8(control, c)
File "/home/jetbot/.local/lib/python2.7/site-packages/Adafruit_GPIO/I2C.py", line 114, in write8
self._bus.write_byte_data(self._address, register, value)
File "/home/jetbot/.local/lib/python2.7/site-packages/Adafruit_PureIO/smbus.py", line 268, in write_byte_data
self._device.write(data)
IOError: [Errno 121] Remote I/O error
This is the output when I run $ i2cdetect -y -r 1
. Seems like the Nano is able to detect the motor driver and micro oled.
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- 3d -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- 5d -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Base path: /home/mtt/ws
Source space: /home/mtt/ws/src
Build space: /home/mtt/ws/build
Devel space: /home/mtt/ws/devel
Install space: /home/mtt/ws/install
make: *** No rule to make target 'f_pgk'. Stop.
Invoking "make f_pgk -j16 -l16" failed
mtt is username. f_pkg is my packs name.
I tried to use catkin_make command. Then I got this fail. Is this an issue? I m so new to ros. sorry if this is a nonsense.
Starting with the new L4T r3.22 image, I successfully completed the installation described in the Wiki by several additions, perhaps because several packages were in the original 58GiB image.
Create catkin_workspace
To prevent error message "unable to find catkin_make",
$ sudo apt-get install python-rosinstall, python-rosinstall-generator, python-wstool.
~/$source .bashrc
Build jetson-inference
$sudo apt-get Install libglew-dev
Compile & Install from source, jetson-utils, https://github.com/dusty-nv/jetson-utils
$ sudo apt-get install git cmake
Then clone the jetson-utils repo
$ git clone https://github.com/dusty-nv/jetson-utils
$ cd jetson-utils
$ git submodule update --init
Build make and Install
$ cd jetson-utils
$ mkdir build
$ cd build
$ cmake ../
$ cd jetson-utils/build # omit if pwd is already /build from above
$ make
$ sudo make install
Build deep_learning and Build ros_deep_learning
Install qt4-default, $sudo apt-get install qt4-default
Follow remaining Wiki instructions to clone and compile in the ~/workspace/catkin_ws.
Build jetbot_ros, Testing JetBot, Running the Motors, Using Debug OLED, Using the Camera should proceed to completion. The camera Published camera data, but I had no way to see a picture. I plan to install the ROS "$rqt_image_view" to display the video message data.
I hope this Comment is accurate and useful
Installing Jetbot Model for Gazebo is next!
I want to connect jetson nano and android application via bluetooth. The signal(result of deeprunning) comes from the jetson nano to the smartphone, and I want to run the application according to the signal. Is there any way?
hi,
" To setup the model, first install and run Gazebo once... "
can you share procedure to install gazebo on the jetson?
I keep getting: "E: Unable to locate package gazebo11"
As I understand the “jetbot_motors.py” code, and the note referring to “text commands only”, it is not a Node that Subscribes to the standard ROS “geometry_msgs/Twist.h” message that would be generated by, for example, a Joy Node to enable teleoperation by a keyboard_teleop or joystick_teleop Publisher? If so is there a plan to release a motor driver version that has this function? Thanks
I am using the 3/18/2019 Jetbot SD image.
I am getting two errors when I follow the instructions explicitly. I get that QT 4.X is a requirement and not loaded. I get the libopencv-calib3d-dev has an unresolved issue and libopencv-dev has a conflict.
The first issue when looking at the CMakePreBuild.sh is that the apt-get install is failing completely but then the script continues to run. It runs but finally stops at the missing QT.
So I run apt-get with each of the packages one by one. It is able to install everything but libopencv.
If I rerun CMakePreBuild again I get past the QT error but know I get an error with OpenCV. It says tha OpenCV is trying to overwrite /usr/bin/opencv_version which is also in a package libopencv 3.3.1.2-g31ccdfe11. Also a system pop up on the desktop says "a Ubuntu package has a file conflict with a package that is not a genuine Ubuntu package"
I have re-flashed the drive 3 times now. And the above is a 100% repeatable scenerio.
Has this actually been tested lately with the 3/18/2019 Jetbot SD image?
Installing jetbot-ros on the L4T r32.2 image after successfully installing ROS Melodic, installing "jetson-inference" at CMake ../ command, the error message below occurs after considerable processing.
I would appreciate your trouble shooting assistance. I could forward the CMake Output and Error log files if that's useful.
Thanks
jetbot@jetbotROS:~/workspace/jetson-inference/build$ cmake ../
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Note: this project uses git submodules in the source tree.
if you haven't already, run the following command from
the project's root directory:
git submodule update --init
-- Launching pre-build dependency installer script...
[Pre-build] dependency installer script running...
[Pre-build] build root directory: /home/jetbot/workspace/jetson-inference/build
...
...
-- Copying /home/jetbot/workspace/jetson-inference/data/images/red_apple_0.jpg
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- jetson-utils: building as submodule, /home/jetbot/workspace/jetson-inference
qmake: could not exec '/usr/lib/aarch64-linux-gnu/qt4/bin/qmake': No such file or directory
CMake Error at /usr/share/cmake-3.10/Modules/FindQt4.cmake:1320 (message):
Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
utils/CMakeLists.txt:12 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/jetbot/workspace/jetson-inference/build/CMakeFiles/CMakeOutput.log".
See also "/home/jetbot/workspace/jetson-inference/build/CMakeFiles/CMakeError.log".
jetbot@jetbotROS:~/workspace/jetson-inference/build/CMakeFiles$
Here is the content of the "build" folders
jetbot@jetbotROS:~/workspace/jetson-inference/build$ ls
aarch64 detectnet-console multiped-500.tar.gz
CMakeCache.txt docs ped-100.tar.gz
CMakeFiles facenet-120.tar.gz segnet-camera
Deep-Homography-COCO.tar.gz FCN-Alexnet-Aerial-FPV-720p.tar.gz segnet-console
detectnet-camera FCN-Alexnet-Cityscapes-HD.tar.gz trt-bench
DetectNet-COCO-Airplane.tar.gz FCN-Alexnet-Pascal-VOC.tar.gz trt-console
DetectNet-COCO-Bottle.tar.gz GoogleNet-ILSVRC12-subset.tar utils
DetectNet-COCO-Chair.tar.gz imagenet-camera
DetectNet-COCO-Dog.tar.gz imagenet-console
jetbot@jetbotROS:/workspace/jetson-inference/build$ cd CMakeFiles/workspace/jetson-inference/build/CMakeFiles$ ls
jetbot@jetbotROS:
3.10.2/ CMakeError.log CMakeTmp/ feature_tests.c jetson-inference.dir/
cmake.check_cache CMakeOutput.log feature_tests.bin* feature_tests.cxx
jetbot@jetbotROS:~/workspace/jetson-inference/build/CMakeFiles$ ls
3.10.2/ CMakeError.log CMakeTmp/ feature_tests.c jetson-inference.dir/
cmake.check_cache CMakeOutput.log feature_tests.bin* feature_tests.cxx
Hi, I am trying to setup the docker container to use ros2 Foxy in my Sparkfun jetbot. I saw the latest commit, where the compatibility with the Sparkfun robot was finally added, thanks a lot for that. I pulled from git and executed the run.sh to get the container up and running.
The problem is, once inside the container, none of the corresponding Sparkfun files are found, looking like the container is not in its latest version.
I tried running pull.sh but it did not introduce the desired updates. I then decided to build the container (build.sh) to see if that way I could have the latest version. However, doing so, I got stuck because of pip3 protobuf installation issues, which require Python >= 3.7. I am attaching the related lines of code in the DockerFile.
"RUN git clone https://github.com/dusty-nv/py3gazebo /opt/py3gazebo &&
pip3 install protobuf>=2.6 --verbose &&
pip3 install trollius --verbose &&
pip3 install pynput --verbose "
Am I in the right track to get the latest container? If so, how could I successfully build the container?
Thanks a lot for your help in advance!
details:
https://discourse.ros.org/t/security-issue-on-ros-build-farm/9342/8
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
I tried to build ros_deep_learning on jetson TX2.
Got thiis error: /usr/bin/ld: cannot find -lGL**
[ 5%] Building CXX object ros_deep_learning/CMakeFiles/ros_deep_learning_nodelets.dir/src/image_converter.cpp.o
[ 6%] Building CXX object ros_deep_learning/CMakeFiles/segnet.dir/src/node_segnet.cpp.o
[ 8%] Building CXX object ros_deep_learning/CMakeFiles/detectnet.dir/src/node_detectnet.cpp.o
[ 9%] Building CXX object ros_deep_learning/CMakeFiles/segnet.dir/src/image_converter.cpp.o
[ 11%] Linking CXX shared library /home/nvidia/workspace/catkin_ws/devel/lib/libros_deep_learning_nodelets.so
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
Scanning dependencies of target imagenet
ros_deep_learning/CMakeFiles/ros_deep_learning_nodelets.dir/build.make:155: recipe for target '/home/nvidia/workspace/catkin_ws/devel/lib/libros_deep_learning_nodelets.so' failed
make[2]: *** [/home/nvidia/workspace/catkin_ws/devel/lib/libros_deep_learning_nodelets.so] Error 1
CMakeFiles/Makefile2:3061: recipe for target 'ros_deep_learning/CMakeFiles/ros_deep_learning_nodelets.dir/all' failed
make[1]: *** [ros_deep_learning/CMakeFiles/ros_deep_learning_nodelets.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 12%] Building CXX object ros_deep_learning/CMakeFiles/detectnet.dir/src/image_converter.cpp.o
[ 13%] Building CXX object ros_deep_learning/CMakeFiles/imagenet.dir/src/node_imagenet.cpp.o
[ 15%] Building CXX object ros_deep_learning/CMakeFiles/imagenet.dir/src/image_converter.cpp.o
[ 16%] Linking CXX executable /home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/segnet
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
ros_deep_learning/CMakeFiles/segnet.dir/build.make:155: recipe for target '/home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/segnet' failed
make[2]: *** [/home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/segnet] Error 1
CMakeFiles/Makefile2:3098: recipe for target 'ros_deep_learning/CMakeFiles/segnet.dir/all' failed
make[1]: *** [ros_deep_learning/CMakeFiles/segnet.dir/all] Error 2
[ 18%] Linking CXX executable /home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/detectnet
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
ros_deep_learning/CMakeFiles/detectnet.dir/build.make:155: recipe for target '/home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/detectnet' failed
make[2]: *** [/home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/detectnet] Error 1
CMakeFiles/Makefile2:3135: recipe for target 'ros_deep_learning/CMakeFiles/detectnet.dir/all' failed
make[1]: *** [ros_deep_learning/CMakeFiles/detectnet.dir/all] Error 2
[ 19%] Linking CXX executable /home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/imagenet
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
ros_deep_learning/CMakeFiles/imagenet.dir/build.make:155: recipe for target '/home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/imagenet' failed
make[2]: *** [/home/nvidia/workspace/catkin_ws/devel/lib/ros_deep_learning/imagenet] Error 1
CMakeFiles/Makefile2:3588: recipe for target 'ros_deep_learning/CMakeFiles/imagenet.dir/all' failed
make[1]: *** [ros_deep_learning/CMakeFiles/imagenet.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
CMake Error at jetbot+ros/CMakeLists.txt:19(find package):
By not providing ''Findjetson-utils.cmake'' in CMAKE_MOFULE_PATH this project has asked CMake to find a package configuration file provided by ''jetson-uitls'', but CMake did not find one
I am getting error while building the package jetbot_ros on my nvidia jetbot.
Attached the error logs
jetbot@jetson-4-3:~/workspace/catkin_ws$ catkin_make
Base path: /home/jetbot/workspace/catkin_ws
Source space: /home/jetbot/workspace/catkin_ws/src
Build space: /home/jetbot/workspace/catkin_ws/build
Devel space: /home/jetbot/workspace/catkin_ws/devel
.
.
.
[ 26%] Building CXX object jetbot_ros/CMakeFiles/jetbot_camera.dir/src/jetbot_camera.cpp.o
[ 46%] Built target detectnet
[ 53%] Building CXX object jetbot_ros/CMakeFiles/jetbot_camera.dir/src/image_converter.cpp.o
In file included from /usr/local/include/jetson-utils/cudaRGB.h:27:0,
from /home/jetbot/workspace/catkin_ws/src/jetbot_ros/src/image_converter.cpp:25:
/home/jetbot/workspace/catkin_ws/src/jetbot_ros/src/image_converter.cpp: In member function ‘bool imageConverter::Convert(const ImageConstPtr&)’:
/home/jetbot/workspace/catkin_ws/src/jetbot_ros/src/image_converter.cpp:83:18: error: ‘cudaBGR8ToRGBA32’ was not declared in this scope
/home/jetbot/workspace/catkin_ws/src/jetbot_ros/src/image_converter.cpp: In member function ‘bool imageConverter::Convert(sensor_msgs::Image&, const string&, float*)’:
/home/jetbot/workspace/catkin_ws/src/jetbot_ros/src/image_converter.cpp:106:19: error: ‘cudaRGBA32ToBGR8’ was not declared in this scope
if( CUDA_FAILED(cudaRGBA32ToBGR8((float4*)imageGPU, (uchar3*)mInputGPU, mWidth, mHeight)) )
^
/home/jetbot/workspace/catkin_ws/src/jetbot_ros/src/image_converter.cpp:106:19: note: suggested alternative: ‘cudaRGBA32ToRGB8’
/home/jetbot/workspace/catkin_ws/src/jetbot_ros/src/image_converter.cpp:126:19: error: ‘cudaRGBA32ToBGRA8’ was not declared in this scope
if( CUDA_FAILED(cudaRGBA32ToBGRA8((float4*)imageGPU, (uchar4*)mInputGPU, mWidth, mHeight)) )
^
/home/jetbot/workspace/catkin_ws/src/jetbot_ros/src/image_converter.cpp:126:19: note: suggested alternative: ‘cudaRGBA32ToRGBA8’
jetbot_ros/CMakeFiles/jetbot_camera.dir/build.make:86: recipe for target 'jetbot_ros/CMakeFiles/jetbot_camera.dir/src/image_converter.cpp.o' failed
make[2]: *** [jetbot_ros/CMakeFiles/jetbot_camera.dir/src/image_converter.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 73%] Built target segnet
[ 93%] Built target imagenet
CMakeFiles/Makefile2:615: recipe for target 'jetbot_ros/CMakeFiles/jetbot_camera.dir/all' failed
make[1]: *** [jetbot_ros/CMakeFiles/jetbot_camera.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j2 -l2" failed
I had trouble installing the ROS Melodic from the command line:
sudo apt-get install ros-melodic-ros-base
Instead, I followed these instructions:
http://wiki.ros.org/Installation/Ubuntu
Note: You will need to run the command in section 1.3 to set up your keys before clicking the link in section 1.4.
I hope this helps others.
After following this install procedure, how do i use jetbot simulation model to control??
I'd like to control this model by rostopic pub or something ROS interface. If you have any solutions, it's helpful for me.
Currently, the ROS nodes (?) utilizes Python 2 for the hardware scripts, which was announced to be sunset a while ago: https://www.python.org/doc/sunset-python-2/
If the nodes (?), were to utilize Python 3, I could add in the functionality for the OLED display included in the SparkFun Kit: #37 (comment)
Hi,
I have installed the gazebo by following this link
http://gazebosim.org/tutorials?tut=install_ubuntu
I can run gazebo. and I have closed the gazebo properly and restarted the nano just to be safe.
But when I run this line, there is an error.
./install_jetbot_model.sh
checking for: /home/jetbot/.gazebo
checking for: /home/jetbot/.gazebo/models
error: please install and run Gazebo once before running this script
Do I need to modify the install_jetbot_model.sh?
But in the file system
~/workspace/catkin_ws/src/jetbot_ros/gazebo/jetbot
Inside, there are
meshes (folder) model.config model.sdf
there is no .gazebo
Btw, I am using this jetbot, it has its own SD card image. And I can run the motors and OLED. It won't affect the ros, right?
https://www.waveshare.net/wiki/JetBot_AI_Kit
Thanks.
Following:
jetbot_ros
ROS2 nodes and Gazebo model for NVIDIA JetBot with Jetson Nano
note: if you want to use ROS Melodic, see the melodic branch
Start the JetBot ROS2 Foxy container
git clone https://github.com/dusty-nv/jetbot_ros
cd jetbot_ros
docker/run.sh
I installed jetbot_ros and testing while attached to hdmi monitor everything worked, now using battery pack and accessing jetbot remotely through Jupyterlab.
I ran in Jupyter lab terminal:
cd jetbot_ros
docker/run.sh
get this error:
root@nano-4gb-jp45:/workspace/jetbot_ros# docker/run.sh
head: cannot open '/etc/nv_tegra_release' for reading: No such file or directory
reading L4T version from "dpkg-query --show nvidia-l4t-core"
dpkg-query: no packages found matching nvidia-l4t-core
L4T BSP Version: L4T R.
CONTAINER: dustynv/jetbot_ros:foxy-r.
DEV_VOLUME:
DATA_VOLUME: --volume /workspace/jetbot_ros/data:/workspace/src/jetbot_ros/data
USER_VOLUME:
USER_COMMAND:
V4L2_DEVICES: --device /dev/video0
docker/run.sh: line 182: sudo: command not found
docker/run.sh: line 186: sudo: command not found
xauth: file /root/.Xauthority does not exist
xauth: file /tmp/.docker.xauth does not exist
xauth: (argv):1: unable to read any entries from file "(stdin)"
chmod: cannot access '/tmp/.docker.xauth': No such file or directory
docker/run.sh: line 191: sudo: command not found
root@nano-4gb-jp45:/workspace/jetbot_ros#
sudo command not found
run.sh lines 181-199
sudo xhost +si:localuser:root
XAUTH=/tmp/.docker.xauth
sudo rm -rf $XAUTH
xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -
chmod 777 $XAUTH
sudo docker run --runtime nvidia -it --rm --name jetbot_ros
--network host
--privileged
-e DISPLAY=$DISPLAY
-v /tmp/.X11-unix/:/tmp/.X11-unix
-v $XAUTH:$XAUTH -e XAUTHORITY=$XAUTH
-v /tmp/argus_socket:/tmp/argus_socket
-v /etc/enctune.conf:/etc/enctune.conf
$MOUNTS $CONTAINER_IMAGE $USER_COMMAND
help me :(
Base path: /home/jetbot/workspace/catkin_ws Source space: /home/jetbot/workspace/catkin_ws/src Build space: /home/jetbot/workspace/catkin_ws/build Devel space: /home/jetbot/workspace/catkin_ws/devel Install space: /home/jetbot/workspace/catkin_ws/install #### #### Running command: "make cmake_check_build_system" in "/home/jetbot/workspace/catkin_ws/build" #### -- Using CATKIN_DEVEL_PREFIX: /home/jetbot/workspace/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /home/jetbot/workspace/catkin_ws/devel;/opt/ros/melodic -- This workspace overlays: /home/jetbot/workspace/catkin_ws/devel;/opt/ros/melodic -- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") -- Using PYTHON_EXECUTABLE: /usr/bin/python2 -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/jetbot/workspace/catkin_ws/build/test_results -- Found gtest sources under '/usr/src/googletest': gtests will be built -- Found gmock sources under '/usr/src/googletest': gmock will be built -- Found PythonInterp: /usr/bin/python2 (found version "2.7.17") -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.7.29 -- BUILD_SHARED_LIBS is on -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 2 packages in topological order: -- ~~ - jetbot_ros (unknown) CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:89 (message): Unknown build type 'ament_python' for package 'jetbot_ros' Call Stack (most recent call first): CMakeLists.txt:69 (catkin_workspace) -- ~~ - ros_deep_learning -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CMake Error at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:100 (message): This workspace contains non-catkin packages in it, and catkin cannot build a non-homogeneous workspace without isolation. Try the 'catkin_make_isolated' command instead. Call Stack (most recent call first): CMakeLists.txt:69 (catkin_workspace) -- Configuring incomplete, errors occurred! See also "/home/jetbot/workspace/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/jetbot/workspace/catkin_ws/build/CMakeFiles/CMakeError.log". Makefile:838: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed
Could you provide a link or the steps that shows how to "It is assumed that the Nano has been setup with JetPack 4.2 and that CUDA, cuDNN, and TensorRT have been installed."
reading L4T version from /etc/nv_tegra_release
L4T BSP Version: L4T R32.7.3
CONTAINER: dustynv/jetbot_ros:foxy-r32.7.3
DEV_VOLUME:
DATA_VOLUME: --volume /home/patrick/jetbot_ros/data:/workspace/src/jetbot_ros/data
USER_VOLUME:
USER_COMMAND:
V4L2_DEVICES: --device /dev/video0
xhost: unable to open display ""
xauth: file /home/patrick/.Xauthority does not exist
xauth: file /tmp/.docker.xauth does not exist
xauth: (argv):1: unable to read any entries from file "(stdin)"
chmod: cannot access '/tmp/.docker.xauth': No such file or directory
Unable to find image 'dustynv/jetbot_ros:foxy-r32.7.3' locally
docker: Error response from daemon: manifest for dustynv/jetbot_ros:foxy-r32.7.3 not found: manifest unknown: manifest unknown.
See 'docker run --help'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.