Add keyboard_command_callback to command_multiplexer.py for teleoperating using keyboard
Remove veolcity scaling in src/control_plugin.py#L134 in convert the input velocity (in reference/local frame) to joint speed (wheel rotation in rad/s)
Remove car_x.access and replace with singular car_controller.launch with arguments
Refactor one_car.launch.xml to car_gazebo.launch to specify a car's gazebo configuration
Refactor vehicle_class.launch.xml to car_spawner.launch for launching a car with specific configuration
Publish a rosparam car_x/init_pose that contains the spawn position in [x_pos, y_pos, z_pos] to replace offset and easier to use across packages
Add the old simulator.launch and race_track world from previous tutorial
Add an offset (-9, -5) to new race-track map map/race_track.yaml#L3 to align the center of map with track origin
Change odom_frame in src/control_plugin.py#L45 to car_x_odom to separate multiple car odometry when using the same map (found this bug in multi_teb tutorial)
Fix laser scan tf tree (link position) in base_laser_link static transform publisher. The laser scan should be at the top of the car or in the laser 3d rendering, but somehow it is on the ground level between the wheels)
Replace #!/usr/bin/env python with #!/usr/bin/env python3 since I'm using Noetic.
Changes
keyboard_command_callback
tocommand_multiplexer.py
for teleoperating using keyboardcar_x.access
and replace with singularcar_controller.launch
with argumentsone_car.launch.xml
tocar_gazebo.launch
to specify a car's gazebo configurationvehicle_class.launch.xml
tocar_spawner.launch
for launching a car with specific configurationcar_x/init_pose
that contains the spawn position in[x_pos, y_pos, z_pos]
to replaceoffset
and easier to use across packagessimulator.launch
andrace_track
world from previous tutorialoffset (-9, -5)
to new race-track map map/race_track.yaml#L3 to align the center of map with track originodom_frame
in src/control_plugin.py#L45 tocar_x_odom
to separate multiple car odometry when using the same map (found this bug in multi_teb tutorial)racecar_reset_state
function in src/set_racecar_state.py#L31 using rossrv instead of rosparambase_laser_link
static transform publisher. The laser scan should be at the top of the car or in the laser 3d rendering, but somehow it is on the ground level between the wheels)#!/usr/bin/env python
with#!/usr/bin/env python3
since I'm usingNoetic
.Snapshots