Hi RobotIgnite Community Support,
I’m trying to run my_sphero_main.py through a launch file (11. Sphero Project, Step 4) , but somehow I keep getting the below errors:
The main file is just the main code in the project and the launch file is below:
<node pkg =“my_sphero_actions”
type="my_sphero_actions_server.py"
name="record_odom_action_server_node"
output="screen">
<node pkg =“my_sphero_topics”
type="my_sphero_topic_server.py"
name="crash_direction_service_server"
output="screen">
<node pkg ="my_sphero_main"
type="my_sphero_topics_ImuTopicReader_class.py"
name="imu_topic_subscriber"
output="screen">
<node pkg =“my_sphero_main”
type="my_sphero_main.py"
name="sphero_main_node"
output="screen">
And these are the errors I keep getting when I roslaunch the launch file above,
from imu_topic_susbcriber import ImuTopicReader
ImportError: No module named imu_topic_susbcriber
[crash_direction_service_server-2] process has died [pid 3322, exit code 1, cmd /home/user/catkin_ws/src/my_sphero_topics/src/my_sphero_topic_server.py __name:=crash_direction_service_server __log:=/home/user/.ros/log/0b9c58fe-91a6-11ea-be6b-0221334715d6/crash_direction_service_server-2.log].
log file: /home/user/.ros/log/0b9c58fe-91a6-11ea-be6b-0221334715d6/crash_direction_service_server-2*.log
from cmd_vel_publisher import CmdVelPub
ImportError: No module named cmd_vel_publisher
[sphero_main_node-4] process has died [pid 3372, exit code 1, cmd /home/user/catkin_ws/src/my_sphero_main/src/my_sphero_main.py __name:=sphero_main_node __log:=/home/user/.ros/log/0b9c58fe-91a6-11ea-be6b-0221334715d6/sphero_main_node-4.log].
log file: /home/user/.ros/log/0b9c58fe-91a6-11ea-be6b-0221334715d6/sphero_main_node-4*.log
I have the ImuTopicReader class (python file) in the same src folder that the main file is in,
so not sure why the errors still comes up, (see screenshot)
I look forward to your assistance,
Thank you,
Kind Regards
@wai.mak